/* 0colors export · dark theme */
:root {
--surface: oklch(0.18 0 0);
--surface-panel: oklch(0.21 0 0);
--text: oklch(0.97 0 0);
--text-secondary: oklch(0.74 0 0);
--border: oklch(0.27 0 0);
--primary: oklch(0.62 0.18 256);
--primary-hover: oklch(0.72 0.16 256);
--success: oklch(0.71 0.16 158);
--danger: oklch(0.64 0.22 25);
}
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
surface: 'var(--surface)',
primary: 'var(--primary)',
success: 'var(--success)',
danger: 'var(--danger)',
},
},
},
}
// tokens.json · DTCG
{
"color": {
"primary": {
"$type": "color",
"$value": "#3B82F6"
},
"hover": {
"$type": "color",
"$value": "#60A5FA"
}
}
}
// figma-variables.json
{
"variableCollection": "0colors",
"modes": ["Light", "Dark"],
"variables": [
{ "name": "color/primary",
"resolvedValuesByMode": {
"Light": "#2563EB",
"Dark": "#3B82F6"
} }
]
}