Skip to content

Commit

Permalink
feat: update Tailwind color, remove CSS variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ErwannRousseau committed Nov 28, 2024
1 parent c0545ea commit 93339b7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 65 deletions.
47 changes: 0 additions & 47 deletions assets/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,6 @@
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;

--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;

--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;

--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;

--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 214.3 31.8% 91.4%;

--radius: 0.6rem;
}

.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;

--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;

--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;

--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;

--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;

--border: 214.3 31.8% 91.4%;
}
}

@layer base {
* {
@apply border-border;
Expand Down
34 changes: 17 additions & 17 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,36 @@ module.exports = {
},
extend: {
colors: {
border: "hsl(var(--border))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
border: "#e2e8f0",
background: "#ffffff",
foreground: "#020817",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
DEFAULT: "#0f172a",
foreground: "#f8fafc",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
DEFAULT: "#f1f5f9",
foreground: "#0f172a",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
DEFAULT: "#ef4444",
foreground: "#f8fafc",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
DEFAULT: "#f1f5f9",
foreground: "#64748b",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
DEFAULT: "#f1f5f9",
foreground: "#0f172a",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
lg: "0.6rem",
md: "0.4rem",
sm: "0.2rem",
},
},
},
plugins: [require('@tailwindcss/typography')],
plugins: [],
}
2 changes: 1 addition & 1 deletion templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html class="light" style="color-scheme: light;">
<head>
<meta charset="UTF-8">
<title>Tailwind + Twig</title>
<title>Tailwind + Twig Components</title>
<link rel="icon" href="{{ asset('icons/knp.svg') }}">
{% block javascripts %}
{% block importmap %}{{ importmap('app') }}{% endblock %}
Expand Down

0 comments on commit 93339b7

Please sign in to comment.