-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtailwind.preset.js
More file actions
127 lines (122 loc) · 3.45 KB
/
Copy pathtailwind.preset.js
File metadata and controls
127 lines (122 loc) · 3.45 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
/**
* NERV-UI — Tailwind CSS Preset
* NERV Design System tokens for Neon Genesis Evangelion UI
*
* Usage (Tailwind v3):
* // tailwind.config.js
* module.exports = {
* presets: [require('@mdrbx/nerv-ui/tailwind.preset')],
* content: [
* './node_modules/@mdrbx/nerv-ui/dist/**/*.{ js, mjs } ',
* // ... your own content paths
* ],
* }
*
* Usage(Tailwind v4):
* Import the CSS tokens directly in your main stylesheet:
* @import "@mdrbx/nerv-ui/styles.css";
*/
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
colors: {
/* ── Core EVA Colors ── */
"nerv-black": "#000000",
"nerv-red": "#FF0000",
"nerv-orange": "#FF9900",
"nerv-green": "#00FF00",
"nerv-cyan": "#00FFFF",
"nerv-amber": "#FFAA00",
"nerv-white": "#E0E0E0",
"nerv-dark-gray": "#1A1A1A",
"nerv-mid-gray": "#555555",
"nerv-panel": "#0A0A0A",
"nerv-purple": "#9933FF",
"nerv-magenta": "#FF00FF",
"nerv-lcd-green": "#39FF14",
/* ── Semantic Aliases ── */
"bg-base": "#000000",
"alert-red": "#FF0000",
"text-orange": "#FF9900",
"grid-green": "#00FF00",
"data-blue": "#00FFFF",
"magenta-wave": "#FF00FF",
"lcd-green": "#39FF14",
},
fontFamily: {
"nerv-display": [
"Oswald",
"Impact",
"Arial Narrow",
"system-ui",
"sans-serif",
],
"nerv-mono": [
"Fira Code",
"JetBrains Mono",
"Courier New",
"monospace",
],
"nerv-body": [
"Barlow Condensed",
"Arial Narrow",
"system-ui",
"sans-serif",
],
"nerv-title": [
"Noto Serif JP",
"Playfair Display",
"Georgia",
"Times New Roman",
"serif",
],
},
keyframes: {
"nerv-flicker": {
"0%, 100%": { opacity: "1" },
"50%": { opacity: "0.85" },
"52%": { opacity: "0.4" },
"54%": { opacity: "0.9" },
"56%": { opacity: "0.3" },
"58%": { opacity: "1" },
},
"nerv-blink-hard": {
"0%, 49%": { opacity: "1" },
"50%, 100%": { opacity: "0" },
},
"nerv-pulse": {
"0%, 100%": { opacity: "1" },
"50%": { opacity: "0.6" },
},
"nerv-glow": {
"0%, 100%": {
textShadow: "0 0 4px currentColor, 0 0 8px currentColor",
filter: "brightness(1)",
},
"50%": {
textShadow:
"0 0 8px currentColor, 0 0 20px currentColor, 0 0 40px currentColor",
filter: "brightness(1.2)",
},
},
"cursor-blink": {
"0%, 49%": { opacity: "1" },
"50%, 100%": { opacity: "0" },
},
"hazard-scroll": {
"0%": { backgroundPosition: "0 0" },
"100%": { backgroundPosition: "28.28px 0" },
},
},
animation: {
"nerv-flicker": "nerv-flicker 3s infinite",
"nerv-blink-hard": "nerv-blink-hard 1s steps(1) infinite",
"nerv-pulse": "nerv-pulse 2s ease-in-out infinite",
"nerv-glow": "nerv-glow 2s ease-in-out infinite",
"cursor-blink": "cursor-blink 1s steps(1) infinite",
"hazard-scroll": "hazard-scroll 0.5s linear infinite",
},
},
},
};