1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

refactor(ui): allow all tailwind css colors

This commit is contained in:
2024-11-09 20:14:30 +01:00
parent 9e840b8dae
commit 4c69d5a852
7 changed files with 39 additions and 40 deletions

View File

@ -9,6 +9,10 @@
@tailwind utilities;
@layer base {
* {
min-width: 0;
}
b,
strong {
@apply font-semibold;
@ -36,11 +40,11 @@
@apply italic tracking-wider;
}
blockquote {
@apply border-gray border-l-4 pl-3 italic;
@apply border-gray-lighter border-l-4 pl-3 italic;
}
kbd {
@apply bg-gray rounded-md px-2 dark:text-black;
@apply bg-gray-lighter rounded-md px-2 dark:text-black;
}
mark {
@ -82,7 +86,7 @@ body {
}
.prose {
@apply dark:text-gray !max-w-5xl scroll-smooth text-black;
@apply dark:text-gray-lighter !max-w-5xl scroll-smooth text-black;
}
.prose p {
@ -107,7 +111,7 @@ body {
}
.prose strong {
@apply dark:text-gray text-black;
@apply dark:text-gray-lighter text-black;
}
.prose h2,

View File

@ -3,39 +3,34 @@ import { fontFamily } from "tailwindcss/defaultTheme"
/** @type {Omit<import('tailwindcss').Config, "content">} */
const config = {
darkMode: "class",
darkMode: "selector",
theme: {
colors: {
primary: {
DEFAULT: "#0056b3",
dark: "#00aeff",
},
background: {
DEFAULT: "#fff",
dark: "#181818",
},
white: "#fff",
black: "#000",
gray: "#d1d5db",
"gray-darker": {
DEFAULT: "#4b5563",
dark: "#9ca3af",
},
yellow: "#fef08a",
transparent: "transparent",
inherit: "inherit",
current: "currentColor",
},
boxShadow: {
dark: "0px 0px 2px 2px rgba(0, 0, 0, 0.25)",
light: "0px 0px 2px 2px rgba(0, 0, 0, 0.10)",
darkFlag: "0px 1px 10px hsla(0, 0%, 100%, 0.2)",
lightFlag: "0px 1px 10px rgba(0, 0, 0, 0.25)",
},
fontFamily: {
sans: ["'Montserrat'", ...fontFamily.sans],
},
extend: {
colors: {
primary: {
DEFAULT: "#0056b3",
dark: "#00aeff",
},
background: {
DEFAULT: "#fff",
dark: "#181818",
},
"gray-lighter": "#d1d5db",
"gray-darker": {
DEFAULT: "#4b5563",
dark: "#9ca3af",
},
yellow: "#fef08a",
},
boxShadow: {
dark: "0px 0px 2px 2px rgba(0, 0, 0, 0.25)",
light: "0px 0px 2px 2px rgba(0, 0, 0, 0.10)",
darkFlag: "0px 1px 10px hsla(0, 0%, 100%, 0.2)",
lightFlag: "0px 1px 10px rgba(0, 0, 0, 0.25)",
},
fontFamily: {
sans: ["'Montserrat'", ...fontFamily.sans],
},
typography: {
DEFAULT: {
css: {