-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
154 lines (147 loc) · 6.14 KB
/
Copy pathtailwind.config.js
File metadata and controls
154 lines (147 loc) · 6.14 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/** @type {import('tailwindcss').Config} */
const plugin = require("tailwindcss/plugin")
export default {
// levelcode.html is the LevelCode Cloud entry (it replaced atompp.html, which no
// longer exists — the stale glob silently matched nothing). .mdx is here for the
// docs pages under src/levelcode/docs.
content: ['./index.html', './levelcode.html', './src/**/*.{js,ts,jsx,tsx,mdx}'],
darkMode: 'class', // Enable class-based dark mode
theme: {
extend: {
fontFamily: {
rubik: ['Rubik', 'sans-serif'],
// CSS-var driven with per-app fallbacks: the thin.ly app leaves the vars
// unset (→ Bricolage/Geist), the Atom++ Cloud app (atompp.html) sets them
// in src/atompp/globals.css (→ Space Grotesk / Inter / JetBrains Mono).
display: ['var(--font-display, "Bricolage Grotesque")', 'sans-serif'],
sans: ['var(--font-sans, Geist)', 'sans-serif'],
mono: ['var(--font-mono, "Geist Mono")', 'monospace'],
cyber: ['var(--font-cyber, system-ui)', 'sans-serif'],
},
letterSpacing: {
tightest: '-0.045em',
},
colors: {
accent: `var(--clr-primary-400)`,
primary: `var(--clr-primary-500)`,
primaryDark: `var(--clr-primary-500)`,
textPrimary: '#203053',
secondary: `var(--clr-secondary-400)`,
neutral100: `var(--clr-neutral-100: hsl(0, 0%, 100%))`,
neutral200: `var(--clr-neutral-200: hsl(0, 0%, 75%))`,
neutral300: `var(--clr-neutral-300: hsl(257, 7%, 63%))`,
neutral400: `var(--clr-neutral-400: hsl(255, 11%, 22%))`,
neutral500: `var(--clr-neutral-500: hsl(260, 8%, 14%))`,
neutral900: `var(--clr-neutral-900: hsl(0, 0%, 0%))`,
// Dashboard design tokens (from thinly-home-improved.html mockup)
canvas: { DEFAULT: '#f4f5f1', 2: '#ffffff' },
ink: {
DEFAULT: '#15151b',
2: '#3a3a48',
3: '#6a6a78',
4: '#9a9aa8',
},
dashline: { DEFAULT: '#e5e7e0', 2: 'rgba(0,0,0,0.05)' },
mint: { DEFAULT: '#b7e6d0', 2: '#d3efe1', 3: '#e8f5ee', d: '#2a7a5c' },
coral: { DEFAULT: '#f5a99a', 2: '#fbcfc4', d: '#b54a31' },
peach: { DEFAULT: '#fcd9b8', 2: '#fde8d2', d: '#b5613c' },
lilac: { DEFAULT: '#d8c9f0', 2: '#ebe2f7', d: '#6b4ba6' },
sun: { DEFAULT: '#fce58b', 2: '#fdefb4', d: '#8a6f0d' },
sky: { DEFAULT: '#c8def5', 2: '#dde8f7', d: '#2c5d8f' },
rose: '#f4a4c0',
forest: '#1f3a32',
violetBrand: { DEFAULT: '#7c3aed', 2: '#a855f7' },
// ── Atom++ Cloud (atompp.html) — paper-and-ink, ported from site/. The
// `ink` token above (near-black #15151b) is reused as the atompp text ink
// (site's was #1b1a17 — imperceptibly different); the rest are additive.
paper: '#f4f1ea', // canvas
card: '#fbfaf6', // raised light surface
sub: '#3f3c34', // secondary text
faint: '#807a6b', // captions, line numbers
rule: '#e2ddd0', // hairlines, borders
// Signature accent — CSS-var driven (default: editor agent purple)
flame: 'rgb(var(--accent-rgb) / <alpha-value>)',
flamedeep: 'rgb(var(--accent-deep-rgb) / <alpha-value>)',
leaf: '#5f8a4e',
blossom: '#c2679d',
pane: '#22262e', // dark editor pane
paneink: '#b9c0cb',
panedim: '#7d8695',
syn: { key: '#c678dd', fn: '#61afef', str: '#98c379', num: '#d19a66', com: '#7f848e', cls: '#e5c07b' },
// ── levelcode.dev "LevelCode Rise" aliases, mapped onto the cream
// paper-and-ink palette so the ported landing components render in the
// Atom++/LevelCode account theme (NOT the .dev dark theme). void→paper,
// abyss→card, frost→ink, ghost→sub, line→rule, electric→flame.
void: '#f4f1ea',
abyss: '#fbfaf6',
frost: '#1b1a17',
ghost: '#3f3c34',
line: '#e2ddd0',
electric: 'rgb(var(--accent-rgb) / <alpha-value>)',
electricdeep: 'rgb(var(--accent-deep-rgb) / <alpha-value>)',
ice: '#2e7fd0', // secondary highlight, AA-readable on cream
},
borderRadius: {
bento: '18px',
},
boxShadow: {
'bento-sm': '0 1px 0 rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.03)',
'bento': '0 1px 0 rgba(0,0,0,0.04), 0 8px 24px rgba(20,20,30,0.06)',
'bento-lift': '0 1px 0 rgba(0,0,0,0.04), 0 16px 40px rgba(20,20,30,0.1)',
},
keyframes: {
wave: {
'0%, 60%, 100%': { transform: 'rotate(0)' },
'10%, 30%': { transform: 'rotate(14deg)' },
'20%': { transform: 'rotate(-8deg)' },
'40%': { transform: 'rotate(14deg)' },
'50%': { transform: 'rotate(-4deg)' },
},
floatY: {
'0%, 100%': { transform: 'translateY(0) rotate(0)' },
'50%': { transform: 'translateY(-4px) rotate(2deg)' },
},
fadeIn: {
'0%': { opacity: '0', transform: 'translateY(8px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
'pulse-live': {
'0%, 100%': { boxShadow: '0 0 0 0 #2a7a5c', opacity: '1' },
'70%': { boxShadow: '0 0 0 6px transparent', opacity: '0.8' },
},
},
animation: {
wave: 'wave 2.5s ease-in-out infinite',
float: 'floatY 5s ease-in-out infinite',
'pulse-live': 'pulse-live 1.8s infinite',
// Ported from levelcode.dev — the marquee keyframe lives in
// src/levelcode/globals.css (running providers + hero tool ticker).
marquee: 'marquee 36s linear infinite',
},
scale: {
'preview': '0.20'
}
},
},
plugins: [
plugin(({ addUtilities }) => {
addUtilities({
/* Chrome, Safari and Opera */
".scrollbar-hidden::-webkit-scrollbar": {
display: "none",
},
".scrollbar-hidden": {
"scrollbar-width": "none",
"-ms-overflow-style": "none",
},
/* Mobile slider utilities */
".slide-in-right": {
"transform": "translateX(0)",
},
".slide-out-right": {
"transform": "translateX(100%)",
},
})
}),
],
};