-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
66 lines (61 loc) · 2.35 KB
/
Copy pathtailwind.config.ts
File metadata and controls
66 lines (61 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import type { Config } from "tailwindcss";
// -----------------------------------------------------------------------------
// The Emerald Atelier palette
//
// These tokens are the single source of truth for the Mudrik color system.
// Legacy token names (`midnight`, `charcoal`, `mist`) are intentionally kept
// and remapped to the new emerald shades so the hundreds of existing
// `bg-midnight` / `text-charcoal` utilities across the app migrate without
// any JSX edits. This is purely a CSS-level palette migration — no layout,
// dimension, or behavioral change.
// -----------------------------------------------------------------------------
const emerald = {
// Deep emerald — dark left panels, high-authority text, logo pill.
primary: "#003334",
// Signature emerald — buttons, interactive accents, links on light surfaces.
secondary: "#006a67",
// Charcoal-teal — secondary text on light backgrounds, grounding contrast.
tertiary: "#242e38",
// Main light surface — replaces every pure-white container.
surface: "#f7fafa",
// Ghost border — secondary color at 15 % alpha, per the no-line rule.
ghost: "rgba(0, 106, 103, 0.15)",
} as const;
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
fontFamily: {
sans: ["var(--font-ibm-plex)", "IBM Plex Sans Arabic", "system-ui", "sans-serif"],
},
extend: {
colors: {
// --- The Emerald Atelier tokens ----------------------------------
primary: emerald.primary,
secondary: emerald.secondary,
tertiary: emerald.tertiary,
surface: emerald.surface,
ghost: emerald.ghost,
// --- Legacy aliases, remapped to the new palette -----------------
// `midnight` was #0F172A → now the emerald primary.
midnight: emerald.primary,
// `charcoal` was #1E293B → now the emerald tertiary (body text).
charcoal: emerald.tertiary,
// `mist` keeps its muted slate role for nav/labels on the surface.
mist: "#5a6b6b",
},
borderColor: {
// Allows `border-ghost` as the only sanctioned sectioning border.
ghost: emerald.ghost,
},
ringColor: {
ghost: emerald.ghost,
},
},
},
plugins: [],
};
export default config;