@skaile/forge-brand 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +109 -2
- package/assets/identity.md +164 -0
- package/package.json +56 -4
- package/src/css/app.css +157 -0
- package/src/css/brand.css +126 -0
- package/src/css/nuxt-ui.css +66 -0
- package/src/css/sk.css +29 -0
- package/src/css/theme.css +290 -0
- package/src/index.ts +2 -0
- package/src/tailwind-preset.ts +70 -0
- package/src/tokens.json +107 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @skaile/forge-brand
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ce96a12: `@skaile/forge-tokens` is renamed to `@skaile/forge-brand` and absorbs the external `@skaile/brand` 0.7 (brand palette, Nuxt UI bridge, Tailwind preset, `tokens.json`, the identity notes `identity.md`; the logo, icon and favicon SVGs are not carried over). Forge apps depend on this package only; `@skaile/forge-tokens` and `@skaile/brand` are no longer used by forge.
|
|
8
|
+
|
|
9
|
+
Entries: `./nuxt-ui.css` (Nuxt UI bridge, now also includes the `--sk-*` mapping, so one import themes Nuxt UI and the forge UI packages), `./app.css` (new: the app colours of skaile-forge as Tailwind 4 `@theme` utilities: surface/foreground, the `primary-*` scale on `--ui-primary`, and the `data-mode` accents rose/sky/emerald), `./theme.css`, `./sk.css` (the `--sk-*` → `--ui-*` mapping alone), `./brand.css`, `./tailwind-preset`, `./tokens`, `./assets/identity.md`, `.` (`tokens`, `skaileTailwindPreset`). The README documents the three token layers (brand palette, Nuxt UI bridge, `--sk-*` mapping) and `app.css` on top.
|
|
10
|
+
|
|
11
|
+
### Breaking
|
|
12
|
+
|
|
13
|
+
- `@skaile/forge-tokens/nuxt-ui.css` → `@skaile/forge-brand/sk.css` (same rules; or `@skaile/forge-brand/nuxt-ui.css` to also take the brand palette).
|
|
14
|
+
- `@skaile/brand/<entry>` → `@skaile/forge-brand/<entry>` (same entries and output; `nuxt-ui.css` additionally sets `--sk-*` from `--ui-*`).
|
|
15
|
+
- The SVG assets of `@skaile/brand` are gone: `assets/skaile-logo.svg`, `assets/skaile-icon.svg` and `assets/favicon.svg` have no `@skaile/forge-brand` entry. An app ships its own icon and favicon (e.g. in `public/`). `assets/identity.md` stays, now as the only asset entry (`./assets/identity.md` instead of the `./assets/*` wildcard).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matthias Ortegro
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,110 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @skaile/forge-brand
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Skaile brand for forge apps: design tokens, CSS custom properties, the Nuxt UI bridge, the
|
|
4
|
+
`--sk-*` mapping the forge UI packages read, the app colours of skaile-forge, a Tailwind preset,
|
|
5
|
+
and the brand identity notes. No logo, icon or favicon: an app ships its own.
|
|
6
|
+
|
|
7
|
+
It replaces two packages: `@skaile/forge-tokens` (the `--sk-*` mapping, now `sk.css`) and the
|
|
8
|
+
external `@skaile/brand` (palette, Nuxt UI bridge, preset, identity notes). Forge apps depend on
|
|
9
|
+
this package only.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun add @skaile/forge-brand
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Nuxt UI app: one import
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
/* app/assets/css/main.css — import AFTER "@nuxt/ui": same specificity, source order decides */
|
|
19
|
+
@import "tailwindcss";
|
|
20
|
+
@import "@nuxt/ui";
|
|
21
|
+
@import "@skaile/forge-brand/nuxt-ui.css"; /* brand palette + Nuxt UI bridge + --sk-* mapping */
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The `@skaile/forge-app` layer registers exactly this; an app that extends it imports nothing.
|
|
25
|
+
|
|
26
|
+
Migrating:
|
|
27
|
+
|
|
28
|
+
- `@import "@skaile/brand/nuxt-ui.css"` → `@import "@skaile/forge-brand/nuxt-ui.css"` (now also
|
|
29
|
+
sets `--sk-*`, so forge-chat, agent-inbox and the editor follow the brand).
|
|
30
|
+
- `@import "@skaile/forge-tokens/nuxt-ui.css"` → `@import "@skaile/forge-brand/sk.css"` to keep
|
|
31
|
+
your own Nuxt UI palette, or `nuxt-ui.css` to take the brand.
|
|
32
|
+
- Any other `@skaile/brand/<path>` → `@skaile/forge-brand/<path>`; the entries are the same.
|
|
33
|
+
|
|
34
|
+
## Token layers
|
|
35
|
+
|
|
36
|
+
Three layers, each reading the one below it. Set a variable of a higher layer after the import
|
|
37
|
+
to deviate.
|
|
38
|
+
|
|
39
|
+
| Layer | File | Sets | Read by |
|
|
40
|
+
|---|---|---|---|
|
|
41
|
+
| 1. Brand palette | `theme.css` | shadcn-semantic variables, light + dark: `--background`, `--foreground`, `--primary`, `--card`, `--muted`, `--border`, `--color-success`, `--color-primary-bright`, `--sidebar-*`, `--font-*`, `--radius`, … (`.light`/`.dark` on `<html>`, light on bare `:root`) | the bridge, React (shadcn) hosts, the Tailwind preset |
|
|
42
|
+
| 2. Nuxt UI bridge | `nuxt-ui.css` | Nuxt UI's `--ui-*` (palette, text, borders, radius) from layer 1; imports `theme.css` and `sk.css` | every Nuxt UI component |
|
|
43
|
+
| 3. `--sk-*` mapping | `sk.css` | `--sk-bg`, `--sk-fg`, `--sk-primary`, `--sk-danger`, … from layer 2 (`--ui-*`) | `@skaile/forge-chat`, `@skaile/forge-agent-inbox`, `@skaile/forge-editor` |
|
|
44
|
+
|
|
45
|
+
Optional on top of layer 2: `app.css`, the app colours of skaile-forge as Tailwind 4 `@theme`
|
|
46
|
+
utilities: `bg-background`, `bg-surface-{ground,card,border,hover}`,
|
|
47
|
+
`text-foreground{,-muted,-subtle}`, `shadow-floating`, the `primary-50…950` scale on
|
|
48
|
+
`--ui-primary`, and mode accents (`data-mode="assistant|work|concept"` on `<html>` repoints the
|
|
49
|
+
primary at rose, sky or emerald; `--mode-accent`, `--mode-color-<mode>`). Import it after
|
|
50
|
+
`nuxt-ui.css`.
|
|
51
|
+
|
|
52
|
+
## Entries
|
|
53
|
+
|
|
54
|
+
| Entry | Content |
|
|
55
|
+
|---|---|
|
|
56
|
+
| `@skaile/forge-brand/nuxt-ui.css` | Nuxt UI 4 bridge (layer 2), includes `theme.css` and `sk.css` |
|
|
57
|
+
| `@skaile/forge-brand/app.css` | skaile-forge's app colours: surface/foreground utilities, `primary-*` scale, mode accents (Tailwind 4 `@theme`; after `nuxt-ui.css`) |
|
|
58
|
+
| `@skaile/forge-brand/theme.css` | brand palette (layer 1), the app surface (platform, store) |
|
|
59
|
+
| `@skaile/forge-brand/sk.css` | `--sk-*` → `--ui-*` mapping (layer 3) alone, for a Nuxt UI app with its own palette |
|
|
60
|
+
| `@skaile/forge-brand/brand.css` | raw `--color-*` properties of the dark marketing/website surface (gradient, persona avatars, spacing/shadow scales) |
|
|
61
|
+
| `@skaile/forge-brand/tailwind-preset` | `skaileTailwindPreset`, Tailwind preset bound to the `theme.css` variables (v3 config; v4 reads the CSS variables directly) |
|
|
62
|
+
| `@skaile/forge-brand/tokens` | canonical `tokens.json` |
|
|
63
|
+
| `@skaile/forge-brand` | `{ tokens, skaileTailwindPreset }` |
|
|
64
|
+
| `@skaile/forge-brand/assets/identity.md` | brand identity notes (colours, type, do's and don'ts) |
|
|
65
|
+
|
|
66
|
+
The `.` and `./tailwind-preset` entries ship TypeScript source; consume them through a bundler or
|
|
67
|
+
Bun.
|
|
68
|
+
|
|
69
|
+
### Other hosts
|
|
70
|
+
|
|
71
|
+
```css
|
|
72
|
+
/* React (shadcn) host, Tailwind v4: the shadcn names match */
|
|
73
|
+
@import "@skaile/forge-brand/theme.css";
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
// Marketing site (Astro): plain CSS asset import
|
|
78
|
+
import "@skaile/forge-brand/brand.css";
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Nuxt UI bridge (`nuxt-ui.css`)
|
|
82
|
+
|
|
83
|
+
Takes the brand palette, radius and light/dark switch into every Nuxt UI component with no
|
|
84
|
+
per-app overrides. Dark mode follows the `.dark` class Nuxt UI's color mode puts on `<html>`.
|
|
85
|
+
|
|
86
|
+
| Selector | Effect |
|
|
87
|
+
|---|---|
|
|
88
|
+
| `:root, .light, .dark` | `--ui-primary/secondary/success/warning/error/info`, `--ui-bg-*`, `--ui-text-*`, `--ui-border-*`, `--ui-radius` from the brand variables |
|
|
89
|
+
| `.dark .bg-inverted` | label on solid-neutral surfaces takes the dark page colour |
|
|
90
|
+
| `.dark` | `--ui-primary` switches to `--color-primary-bright`; #7300ff is ~2.3:1 on the dark page |
|
|
91
|
+
|
|
92
|
+
An app with its own dark selector (anything other than `.dark`) has to repeat the `--ui-*`
|
|
93
|
+
mapping under that selector, because a custom property referencing another is resolved where it
|
|
94
|
+
is declared.
|
|
95
|
+
|
|
96
|
+
## `--sk-*` mapping (`sk.css`)
|
|
97
|
+
|
|
98
|
+
Plain `:root`, so it beats the zero-specificity `:where(:root)` defaults of the forge packages;
|
|
99
|
+
the `--ui-*` values already switch on `.dark`, so it needs no dark rule. A host that sets `--sk-*`
|
|
100
|
+
after it still wins.
|
|
101
|
+
|
|
102
|
+
| Token | Nuxt UI variable |
|
|
103
|
+
|---|---|
|
|
104
|
+
| `--sk-bg`, `--sk-bg-elevated`, `--sk-bg-accented` | `--ui-bg`, `--ui-bg-elevated`, `--ui-bg-accented` |
|
|
105
|
+
| `--sk-fg`, `--sk-fg-highlighted`, `--sk-fg-toned`, `--sk-fg-dimmed`, `--sk-muted` | `--ui-text`, `--ui-text-highlighted`, `--ui-text-toned`, `--ui-text-dimmed`, `--ui-text-muted` |
|
|
106
|
+
| `--sk-border`, `--sk-border-accented` | `--ui-border`, `--ui-border-accented` |
|
|
107
|
+
| `--sk-primary`, `--sk-primary-fg` | `--ui-primary`, `--ui-text-inverted` |
|
|
108
|
+
| `--sk-success`, `--sk-warning`, `--sk-danger`, `--sk-info` | `--ui-success`, `--ui-warning`, `--ui-error`, `--ui-info` |
|
|
109
|
+
| `--sk-radius` | `--ui-radius` |
|
|
110
|
+
| `--sk-font` | `--font-sans` |
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: approved
|
|
3
|
+
mood: 'modern depth — enterprise trust through a single violet mark on a dark canvas'
|
|
4
|
+
mode: both
|
|
5
|
+
default_mode: dark
|
|
6
|
+
last_updated: 2026-05-14
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Skaile Brand Identity
|
|
10
|
+
|
|
11
|
+
## Aesthetic Direction
|
|
12
|
+
|
|
13
|
+
Modern depth. Skaile is an enterprise AI workspace — the visual language reads as serious, modern, and restrained. The site, the platform, and the deck system share one canvas: dark slate surfaces with a soft radial purple ambient behind hero sections, and a single violet mark carrying everything that reads as "Skaile".
|
|
14
|
+
|
|
15
|
+
The brand is deliberately mono-color. One violet, one canvas, generous whitespace. No signature gradient, no competing accents, no warm/cool dual palette.
|
|
16
|
+
|
|
17
|
+
The brand avoids two extremes:
|
|
18
|
+
|
|
19
|
+
- **Too corporate:** Light backgrounds, generic blue, stock photos, dense layouts — reads as legacy software.
|
|
20
|
+
- **Too neon-tech:** Cyber green, harsh saturation, monospace-everything — alienates business buyers.
|
|
21
|
+
|
|
22
|
+
Skaile sits in the modern-product band (Linear, Vercel, Astro) with restraint as the memorable element.
|
|
23
|
+
|
|
24
|
+
## Color Palette
|
|
25
|
+
|
|
26
|
+
### Brand Story
|
|
27
|
+
|
|
28
|
+
Violet is the platform's voice — depth, intelligence, authority. The dark canvas with its soft purple radial ambient is the stage. Restraint is the signature. Where other tools chase polychrome decoration, Skaile uses one color confidently.
|
|
29
|
+
|
|
30
|
+
### Colors
|
|
31
|
+
|
|
32
|
+
| Token | Light Mode | Dark Mode | Usage |
|
|
33
|
+
| ---------------- | ---------- | --------- | ------------------------------------------------------ |
|
|
34
|
+
| Primary | `#7300FF` | `#9B40FF` | Headings, links, primary CTAs, hero highlights, active states |
|
|
35
|
+
| Primary bright | `#9B40FF` | `#BC52EE` | Hover states, accent borders, highlight markers |
|
|
36
|
+
| Background | `#FAFAF9` | `#13151A` | Page background |
|
|
37
|
+
| Surface | `#FFFFFF` | `#1A1C22` | Cards, panels |
|
|
38
|
+
| Surface raised | `#FFFFFF` | `#23262D` | Elevated content, popovers, command palette |
|
|
39
|
+
| Ambient purple | - | `#1B1A3F` | Radial fade center behind hero sections |
|
|
40
|
+
| Text | `#1C1917` | `#F4F4F5` | Primary text |
|
|
41
|
+
| Text muted | `#78716C` | `#A1A1AA` | Labels, secondary text |
|
|
42
|
+
| Text dim | `#A8A29E` | `#71717A` | Timestamps, captions |
|
|
43
|
+
| Border | `#E7E5E4` | `#2E303A` | Dividers, input borders |
|
|
44
|
+
| Border strong | `#D6D3D1` | `#3D404A` | Card borders, separators with weight |
|
|
45
|
+
| Error | `#DC2626` | `#EF4444` | Destructive actions |
|
|
46
|
+
| Success | `#059669` | `#10B981` | Completed states |
|
|
47
|
+
| Warning | `#D97706` | `#F59E0B` | Caution states |
|
|
48
|
+
|
|
49
|
+
### Ambient Background
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
radial-gradient(71.92% 191.69% at 50% 50%, #1B1A3F 0%, #000 100%)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
This is the only gradient in the brand. It's an **atmospheric backdrop**, not a brand mark. Painted behind hero sections at low intensity to give the dark canvas a soft purple undertone. It must read as ambient atmosphere — never as a logo, mark, or CTA fill.
|
|
56
|
+
|
|
57
|
+
### Color Usage Rules
|
|
58
|
+
|
|
59
|
+
- **Violet (~10%)** is the only brand color. It carries headings, links, CTAs, focus rings, active nav, brand marks. If only one color is visible in a UI region, it should be violet.
|
|
60
|
+
- **Dark slate neutrals (~85%)** carry surfaces, body text, borders. Cool, neutral undertone — not warm stone, not pure black.
|
|
61
|
+
- **Ambient purple (~5%)** sits behind hero sections only. Never use it as a foreground fill.
|
|
62
|
+
- **Reserve hot saturation.** Status colors (error/success/warning) are functional, not brand. They should not appear at brand scale in marketing surfaces.
|
|
63
|
+
|
|
64
|
+
### Decorative Palette (Not Brand)
|
|
65
|
+
|
|
66
|
+
Marketing components sometimes use decorative blob illustrations inside cards (e.g., the Deliverable section uses `#FF5D01 -> #D8377E` and `#4F39FA -> #BC52EE` blobs). These are **illustration-only**. They are not part of the brand and must not appear on:
|
|
67
|
+
|
|
68
|
+
- CTAs, buttons, links, or any interactive element
|
|
69
|
+
- Headings or body text
|
|
70
|
+
- Logos, brand marks, or document chrome
|
|
71
|
+
- Slide titles, deck accents, or PDF headers
|
|
72
|
+
|
|
73
|
+
If a deck or doc needs visual variety beyond violet, prefer typographic weight, whitespace, or surface elevation — not new colors.
|
|
74
|
+
|
|
75
|
+
## Typography
|
|
76
|
+
|
|
77
|
+
### Heading: Plus Jakarta Sans
|
|
78
|
+
|
|
79
|
+
Bold (700) and semibold (600). Geometric sans-serif with subtly rounded terminals — modern, confident, distinct from the Inter-everywhere SaaS norm. Used for page titles, section headers, card titles, hero text.
|
|
80
|
+
|
|
81
|
+
### Body: Inter
|
|
82
|
+
|
|
83
|
+
Regular (400) and medium (500). The gold standard for UI legibility. Used for body text, form labels, table cells, navigation, descriptions.
|
|
84
|
+
|
|
85
|
+
### Mono: JetBrains Mono
|
|
86
|
+
|
|
87
|
+
Regular (400). For code, schemas, terminal output, technical logs.
|
|
88
|
+
|
|
89
|
+
### Typographic Treatment
|
|
90
|
+
|
|
91
|
+
- Tight tracking on display sizes (`-0.04em` to `-0.02em`).
|
|
92
|
+
- Wide tracking (`0.2em`) on small uppercase eyebrows and section labels.
|
|
93
|
+
- Two font weights per screen max.
|
|
94
|
+
- Hero highlights: solid violet fill (`var(--color-brand)` = `#7300FF`), no gradient.
|
|
95
|
+
|
|
96
|
+
## Spatial System
|
|
97
|
+
|
|
98
|
+
- **Base unit:** 8px grid
|
|
99
|
+
- **Spacing scale:** 4, 8, 12, 16, 24, 32, 48, 64, 96, 128
|
|
100
|
+
- **Page max width:** 1600px with `clamp(16px, 4vw, 48px)` gutters
|
|
101
|
+
- **Density:** Generous whitespace — content breathes. More editorial than dashboard-dense.
|
|
102
|
+
|
|
103
|
+
## Border Radius
|
|
104
|
+
|
|
105
|
+
- **Default:** `6px`
|
|
106
|
+
- **Small (badges, tags):** `4px`
|
|
107
|
+
- **Large (cards, modals):** `8px`
|
|
108
|
+
- **Extra large (hero cards, feature blocks):** `12px` to `20px`
|
|
109
|
+
- **Full (avatars, pill buttons):** `9999px`
|
|
110
|
+
|
|
111
|
+
## Elevation & Shadows
|
|
112
|
+
|
|
113
|
+
Shadows on dark surfaces use deep, cool casts. The `glow` is reserved for hero moments and tints violet, not white.
|
|
114
|
+
|
|
115
|
+
- **sm:** `0 1px 2px rgba(0, 0, 0, 0.4)` — subtle lift
|
|
116
|
+
- **md:** `0 4px 12px rgba(0, 0, 0, 0.45)` — modals, dropdowns
|
|
117
|
+
- **lg:** `0 12px 32px rgba(0, 0, 0, 0.55)` — elevated overlays
|
|
118
|
+
- **glow:** `0 0 60px rgba(155, 64, 255, 0.25)` — hero CTA halo, featured cards
|
|
119
|
+
|
|
120
|
+
## Atmosphere
|
|
121
|
+
|
|
122
|
+
Dark, violet-mono, depth through layering. The atmosphere comes from:
|
|
123
|
+
|
|
124
|
+
- Dark slate surfaces stacked with subtle elevation differences (`#13151A` -> `#1A1C22` -> `#23262D`).
|
|
125
|
+
- A radial purple ambient at the base of hero sections (`#1B1A3F` -> `#000`).
|
|
126
|
+
- Solid violet as the single recurring brand mark.
|
|
127
|
+
- Generous whitespace — content never crowds.
|
|
128
|
+
|
|
129
|
+
## The Memorable Element
|
|
130
|
+
|
|
131
|
+
**Violet on dark.** A single saturated violet (`#7300FF` light / `#9B40FF` dark) used confidently for every brand moment — hero highlights, primary CTAs, headings, active states — against a dark slate canvas with a soft radial purple backdrop.
|
|
132
|
+
|
|
133
|
+
Restraint is the signature. Where other AI tools chase polychrome gradients, Skaile uses one color. That confidence is what makes the brand recognizable at a glance.
|
|
134
|
+
|
|
135
|
+
- **Violet = the brand** (every CTA, link, heading, highlight)
|
|
136
|
+
- **Dark slate = the canvas** (everything else)
|
|
137
|
+
- **Ambient purple = the atmosphere** (hero backdrop only)
|
|
138
|
+
|
|
139
|
+
## Tone of Voice
|
|
140
|
+
|
|
141
|
+
- **Confident, not arrogant.** "Your expertise, skaile'd." Not "We've revolutionized work."
|
|
142
|
+
- **Clear, not dumbed-down.** Respect the business buyer's intelligence without requiring technical literacy.
|
|
143
|
+
- **Direct, not verbose.** Business users value their time. One sentence beats three.
|
|
144
|
+
- **Warm, not casual.** Professional warmth — no Slack-style emoji culture.
|
|
145
|
+
|
|
146
|
+
## Do's and Don'ts
|
|
147
|
+
|
|
148
|
+
### Do
|
|
149
|
+
|
|
150
|
+
- Lead with dark mode in marketing and product surfaces.
|
|
151
|
+
- Use solid violet (`#7300FF` light / `#9B40FF` dark) for every brand moment.
|
|
152
|
+
- Use Plus Jakarta Sans for headings, Inter for body.
|
|
153
|
+
- Use cool dark slate neutrals (`#13151A` -> `#23262D`) for surfaces.
|
|
154
|
+
- Stack elevation with brightness, not heavy shadows.
|
|
155
|
+
- Let whitespace and typography carry hierarchy.
|
|
156
|
+
|
|
157
|
+
### Don't
|
|
158
|
+
|
|
159
|
+
- Use gradients on brand marks, CTAs, or highlighted text — the brand is mono-violet now.
|
|
160
|
+
- Use orange, pink, or magenta as standalone brand colors — they are decorative-only illustration palette, not brand.
|
|
161
|
+
- Use teal, amber, or stone-gray accents — they belong to the previous brand.
|
|
162
|
+
- Apply the radial ambient fade outside hero backdrops — it is not a CTA fill.
|
|
163
|
+
- Use more than two font weights on a single screen.
|
|
164
|
+
- Introduce new colors to create variety in decks — use whitespace, weight, and elevation instead.
|
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skaile/forge-brand",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Skaile brand for forge apps: design tokens, brand palette CSS, the Nuxt UI bridge with the --sk-* mapping of forge packages, skaile-forge's app colours, a Tailwind preset and the brand identity notes",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/skaile-ai/forge.git",
|
|
10
|
+
"directory": "packages/brand"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/skaile-ai/forge/tree/main/packages/brand#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/skaile-ai/forge/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"design-tokens",
|
|
18
|
+
"brand",
|
|
19
|
+
"css",
|
|
20
|
+
"nuxt-ui",
|
|
21
|
+
"tailwind",
|
|
22
|
+
"skaile"
|
|
23
|
+
],
|
|
24
|
+
"exports": {
|
|
25
|
+
".": "./src/index.ts",
|
|
26
|
+
"./tokens": "./src/tokens.json",
|
|
27
|
+
"./brand.css": "./src/css/brand.css",
|
|
28
|
+
"./theme.css": "./src/css/theme.css",
|
|
29
|
+
"./nuxt-ui.css": "./src/css/nuxt-ui.css",
|
|
30
|
+
"./app.css": "./src/css/app.css",
|
|
31
|
+
"./sk.css": "./src/css/sk.css",
|
|
32
|
+
"./tailwind-preset": "./src/tailwind-preset.ts",
|
|
33
|
+
"./assets/identity.md": "./assets/identity.md",
|
|
34
|
+
"./package.json": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"src",
|
|
38
|
+
"!src/**/*.test.ts",
|
|
39
|
+
"assets",
|
|
40
|
+
"README.md",
|
|
41
|
+
"CHANGELOG.md",
|
|
42
|
+
"LICENSE"
|
|
43
|
+
],
|
|
44
|
+
"sideEffects": [
|
|
45
|
+
"*.css"
|
|
46
|
+
],
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"test": "bun test",
|
|
52
|
+
"typecheck": "tsc --noEmit"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/bun": "^1.3.0",
|
|
56
|
+
"typescript": "^5.9.3"
|
|
57
|
+
}
|
|
58
|
+
}
|
package/src/css/app.css
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @skaile/forge-brand/app.css: the app colours of skaile-forge, as Tailwind 4 `@theme` utilities on
|
|
3
|
+
* the brand variables (theme.css) and Nuxt UI's `--ui-primary` (nuxt-ui.css).
|
|
4
|
+
*
|
|
5
|
+
* Import AFTER "@skaile/forge-brand/nuxt-ui.css", inside the Tailwind pipeline:
|
|
6
|
+
* @import "tailwindcss";
|
|
7
|
+
* @import "@nuxt/ui";
|
|
8
|
+
* @import "@skaile/forge-brand/nuxt-ui.css";
|
|
9
|
+
* @import "@skaile/forge-brand/app.css";
|
|
10
|
+
*
|
|
11
|
+
* Sets:
|
|
12
|
+
* - surfaces and text: `bg-background`, `bg-surface-{ground,card,border,hover}`,
|
|
13
|
+
* `text-foreground{,-muted,-subtle}`, `shadow-floating`;
|
|
14
|
+
* - the `primary-*` scale (50–950) on `--ui-primary`;
|
|
15
|
+
* - mode accents: `data-mode="assistant|work|concept"` on <html> repoints the primary at
|
|
16
|
+
* rose, sky or emerald.
|
|
17
|
+
*
|
|
18
|
+
* Dark follows `.dark` (Nuxt UI color mode) or `.forge-project-dark` (an element below :root).
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/* ---------------------------------------------------------------------------
|
|
22
|
+
* Surfaces, text, primary scale
|
|
23
|
+
* ------------------------------------------------------------------------- */
|
|
24
|
+
|
|
25
|
+
/*
|
|
26
|
+
* The primary steps take the mode's ramp (`--app-primary-<step>`, below) when a mode is set; without
|
|
27
|
+
* one (login, error pages) they are derived from `--ui-primary` with color-mix.
|
|
28
|
+
*/
|
|
29
|
+
@theme {
|
|
30
|
+
--color-background: var(--background);
|
|
31
|
+
--color-surface-ground: var(--muted);
|
|
32
|
+
--color-surface-card: var(--card);
|
|
33
|
+
--color-surface-border: var(--border);
|
|
34
|
+
--color-surface-hover: var(--accent);
|
|
35
|
+
--color-foreground: var(--foreground);
|
|
36
|
+
--color-foreground-muted: var(--muted-foreground);
|
|
37
|
+
--color-foreground-subtle: color-mix(in oklab, var(--muted-foreground), var(--background) 35%);
|
|
38
|
+
--color-primary-50: var(--app-primary-50, color-mix(in oklab, var(--ui-primary) 8%, white));
|
|
39
|
+
--color-primary-100: var(--app-primary-100, color-mix(in oklab, var(--ui-primary) 16%, white));
|
|
40
|
+
--color-primary-200: var(--app-primary-200, color-mix(in oklab, var(--ui-primary) 32%, white));
|
|
41
|
+
--color-primary-300: var(--app-primary-300, color-mix(in oklab, var(--ui-primary) 56%, white));
|
|
42
|
+
--color-primary-400: var(--app-primary-400, color-mix(in oklab, var(--ui-primary) 78%, white));
|
|
43
|
+
--color-primary-500: var(--app-primary-500, var(--ui-primary));
|
|
44
|
+
--color-primary-600: var(--app-primary-600, color-mix(in oklab, var(--ui-primary) 86%, black));
|
|
45
|
+
--color-primary-700: var(--app-primary-700, color-mix(in oklab, var(--ui-primary) 70%, black));
|
|
46
|
+
--color-primary-800: var(--app-primary-800, color-mix(in oklab, var(--ui-primary) 55%, black));
|
|
47
|
+
--color-primary-900: var(--app-primary-900, color-mix(in oklab, var(--ui-primary) 42%, black));
|
|
48
|
+
--color-primary-950: var(--app-primary-950, color-mix(in oklab, var(--ui-primary) 28%, black));
|
|
49
|
+
--shadow-floating: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* The `@theme` tokens resolve their `var()` once, on :root; redeclaring them on the dark element
|
|
54
|
+
* re-resolves them there, which matters when the class sits below :root. `:is()` keeps (0,1,0)
|
|
55
|
+
* specificity so these override the light tokens emitted to :root. Without a mode, 400/500 take
|
|
56
|
+
* the brand primary (#9b40ff / #7300ff).
|
|
57
|
+
*/
|
|
58
|
+
:is(.dark, .forge-project-dark) {
|
|
59
|
+
--color-background: var(--background);
|
|
60
|
+
--color-surface-ground: var(--muted);
|
|
61
|
+
--color-surface-card: var(--card);
|
|
62
|
+
--color-surface-border: var(--border);
|
|
63
|
+
--color-surface-hover: var(--accent);
|
|
64
|
+
--color-foreground: var(--foreground);
|
|
65
|
+
--color-foreground-muted: var(--muted-foreground);
|
|
66
|
+
--color-foreground-subtle: color-mix(in oklab, var(--muted-foreground), var(--background) 35%);
|
|
67
|
+
--color-primary-400: var(--app-primary-400, var(--color-primary-bright));
|
|
68
|
+
--color-primary-500: var(--app-primary-500, var(--primary));
|
|
69
|
+
--shadow-floating: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* ---------------------------------------------------------------------------
|
|
73
|
+
* Mode accents: assistant → rose · work → sky · concept → emerald
|
|
74
|
+
*
|
|
75
|
+
* On <html> because Nuxt UI overlays (Slideover, Modal, Popover, menus) teleport to <body>.
|
|
76
|
+
* `html[data-mode]` outranks the `:root` / `.dark` that declare `--ui-primary`, so every component
|
|
77
|
+
* colour derived from it follows the accent.
|
|
78
|
+
*
|
|
79
|
+
* `--mode-accent` is the accent itself (500 light, 400 dark), `--mode-accent-*` the mode's palette.
|
|
80
|
+
* `--mode-color-<mode>` stays fixed regardless of `data-mode`, so each mode keeps its own colour
|
|
81
|
+
* wherever it is shown (e.g. a mode switcher).
|
|
82
|
+
* ------------------------------------------------------------------------- */
|
|
83
|
+
|
|
84
|
+
:root {
|
|
85
|
+
--mode-color-assistant: var(--color-rose-500);
|
|
86
|
+
--mode-color-work: var(--color-sky-500);
|
|
87
|
+
--mode-color-concept: var(--color-emerald-500);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dark {
|
|
91
|
+
--mode-color-assistant: var(--color-rose-400);
|
|
92
|
+
--mode-color-work: var(--color-sky-400);
|
|
93
|
+
--mode-color-concept: var(--color-emerald-400);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
html[data-mode="assistant"] {
|
|
97
|
+
--mode-accent-50: var(--color-rose-50);
|
|
98
|
+
--mode-accent-100: var(--color-rose-100);
|
|
99
|
+
--mode-accent-200: var(--color-rose-200);
|
|
100
|
+
--mode-accent-300: var(--color-rose-300);
|
|
101
|
+
--mode-accent-400: var(--color-rose-400);
|
|
102
|
+
--mode-accent-500: var(--color-rose-500);
|
|
103
|
+
--mode-accent-600: var(--color-rose-600);
|
|
104
|
+
--mode-accent-700: var(--color-rose-700);
|
|
105
|
+
--mode-accent-800: var(--color-rose-800);
|
|
106
|
+
--mode-accent-900: var(--color-rose-900);
|
|
107
|
+
--mode-accent-950: var(--color-rose-950);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
html[data-mode="work"] {
|
|
111
|
+
--mode-accent-50: var(--color-sky-50);
|
|
112
|
+
--mode-accent-100: var(--color-sky-100);
|
|
113
|
+
--mode-accent-200: var(--color-sky-200);
|
|
114
|
+
--mode-accent-300: var(--color-sky-300);
|
|
115
|
+
--mode-accent-400: var(--color-sky-400);
|
|
116
|
+
--mode-accent-500: var(--color-sky-500);
|
|
117
|
+
--mode-accent-600: var(--color-sky-600);
|
|
118
|
+
--mode-accent-700: var(--color-sky-700);
|
|
119
|
+
--mode-accent-800: var(--color-sky-800);
|
|
120
|
+
--mode-accent-900: var(--color-sky-900);
|
|
121
|
+
--mode-accent-950: var(--color-sky-950);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
html[data-mode="concept"] {
|
|
125
|
+
--mode-accent-50: var(--color-emerald-50);
|
|
126
|
+
--mode-accent-100: var(--color-emerald-100);
|
|
127
|
+
--mode-accent-200: var(--color-emerald-200);
|
|
128
|
+
--mode-accent-300: var(--color-emerald-300);
|
|
129
|
+
--mode-accent-400: var(--color-emerald-400);
|
|
130
|
+
--mode-accent-500: var(--color-emerald-500);
|
|
131
|
+
--mode-accent-600: var(--color-emerald-600);
|
|
132
|
+
--mode-accent-700: var(--color-emerald-700);
|
|
133
|
+
--mode-accent-800: var(--color-emerald-800);
|
|
134
|
+
--mode-accent-900: var(--color-emerald-900);
|
|
135
|
+
--mode-accent-950: var(--color-emerald-950);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
html[data-mode] {
|
|
139
|
+
--mode-accent: var(--mode-accent-500);
|
|
140
|
+
--ui-primary: var(--mode-accent);
|
|
141
|
+
|
|
142
|
+
--app-primary-50: var(--mode-accent-50);
|
|
143
|
+
--app-primary-100: var(--mode-accent-100);
|
|
144
|
+
--app-primary-200: var(--mode-accent-200);
|
|
145
|
+
--app-primary-300: var(--mode-accent-300);
|
|
146
|
+
--app-primary-400: var(--mode-accent-400);
|
|
147
|
+
--app-primary-500: var(--mode-accent-500);
|
|
148
|
+
--app-primary-600: var(--mode-accent-600);
|
|
149
|
+
--app-primary-700: var(--mode-accent-700);
|
|
150
|
+
--app-primary-800: var(--mode-accent-800);
|
|
151
|
+
--app-primary-900: var(--mode-accent-900);
|
|
152
|
+
--app-primary-950: var(--mode-accent-950);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
html.dark[data-mode] {
|
|
156
|
+
--mode-accent: var(--mode-accent-400);
|
|
157
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* brand.css — Skaile marketing/website surface (raw CSS custom properties).
|
|
3
|
+
* Canonical source for the website's dark, gradient-forward brand.
|
|
4
|
+
* Single theme (dark), modeled on the astro.build palette.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@custom-media --bp-md (min-width: 768px); /* tablet portrait */
|
|
8
|
+
@custom-media --bp-lg (min-width: 1024px); /* tablet landscape / small laptop */
|
|
9
|
+
@custom-media --bp-xl (min-width: 1280px); /* desktop */
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
/* ── colors ─────────────────────────────────────────────────────────── */
|
|
13
|
+
--color-bg: #13151a;
|
|
14
|
+
--color-bg-raised: #1a1c22;
|
|
15
|
+
--color-surface: #23262d;
|
|
16
|
+
--color-surface-raised: #2a2d36;
|
|
17
|
+
--color-border: #2e303a;
|
|
18
|
+
--color-border-strong: #3d404a;
|
|
19
|
+
|
|
20
|
+
--color-text: #f4f4f5;
|
|
21
|
+
--color-text-muted: #a1a1aa;
|
|
22
|
+
--color-text-dim: #777777;
|
|
23
|
+
|
|
24
|
+
/* brand — mono-violet on dark */
|
|
25
|
+
--color-brand: #7300ff;
|
|
26
|
+
--color-brand-purple: #1b1a3f;
|
|
27
|
+
|
|
28
|
+
--color-accent: var(--color-brand);
|
|
29
|
+
--color-accent-soft: rgba(188, 82, 238, 0.16);
|
|
30
|
+
|
|
31
|
+
/* status */
|
|
32
|
+
--color-success: #10b981;
|
|
33
|
+
--color-warning: #f59e0b;
|
|
34
|
+
--color-error: #ef4444;
|
|
35
|
+
|
|
36
|
+
/* chat / agent — used by the carousel transcript and any future
|
|
37
|
+
* conversation surface. Border aliases the brand purple so the two
|
|
38
|
+
* stay in lockstep if `--color-brand` ever shifts. */
|
|
39
|
+
--color-agent-bg: #15142f;
|
|
40
|
+
--color-agent-border: var(--color-brand);
|
|
41
|
+
|
|
42
|
+
/* chat / user personas — each artifact in the carousel is owned by
|
|
43
|
+
* one of these 7 users; their bg/border drives the avatar disc and
|
|
44
|
+
* message bubble in the transcript below the carousel. Pastel
|
|
45
|
+
* fill, saturated outline. Pair the matching `-bg` and `-border`
|
|
46
|
+
* tokens; the bubble component reads them via CSS variables. */
|
|
47
|
+
--color-user-1-bg: #95ffcf;
|
|
48
|
+
--color-user-1-border: #56bf89;
|
|
49
|
+
--color-user-2-bg: #d495ff;
|
|
50
|
+
--color-user-2-border: #bd59ff;
|
|
51
|
+
--color-user-3-bg: #95b6ff;
|
|
52
|
+
--color-user-3-border: #568bff;
|
|
53
|
+
--color-user-4-bg: #f1eaa5;
|
|
54
|
+
--color-user-4-border: #d2c339;
|
|
55
|
+
--color-user-5-bg: #ff9596;
|
|
56
|
+
--color-user-5-border: #c75254;
|
|
57
|
+
--color-user-6-bg: #ffb595;
|
|
58
|
+
--color-user-6-border: #bc623b;
|
|
59
|
+
--color-user-7-bg: #ff95e3;
|
|
60
|
+
--color-user-7-border: #ca4ea9;
|
|
61
|
+
|
|
62
|
+
/* ── gradients ──────────────────────────────────────────────────────── */
|
|
63
|
+
/* ambient page backdrop only — not a brand mark */
|
|
64
|
+
--gradient-fade-bg: radial-gradient(
|
|
65
|
+
71.92% 191.69% at 50% 50%,
|
|
66
|
+
var(--color-brand-purple) 0%,
|
|
67
|
+
#000 100%
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
/* ── typography ─────────────────────────────────────────────────────── */
|
|
71
|
+
--font-heading:
|
|
72
|
+
'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
73
|
+
sans-serif;
|
|
74
|
+
--font-body:
|
|
75
|
+
'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
76
|
+
--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
77
|
+
|
|
78
|
+
--text-xs: 0.75rem;
|
|
79
|
+
--text-sm: 0.875rem;
|
|
80
|
+
--text-base: 1rem;
|
|
81
|
+
--text-lg: 1.125rem;
|
|
82
|
+
--text-xl: 1.25rem;
|
|
83
|
+
--text-2xl: 1.5rem;
|
|
84
|
+
--text-3xl: 2rem;
|
|
85
|
+
--text-4xl: 2.5rem;
|
|
86
|
+
--text-5xl: clamp(2.5rem, 6vw, 4.5rem);
|
|
87
|
+
--text-display: clamp(3rem, 7vw, 5rem);
|
|
88
|
+
|
|
89
|
+
--leading-tight: 1.1;
|
|
90
|
+
--leading-snug: 1.3;
|
|
91
|
+
--leading-normal: 1.55;
|
|
92
|
+
|
|
93
|
+
--tracking-tight: -0.04em;
|
|
94
|
+
--tracking-snug: -0.02em;
|
|
95
|
+
--tracking-wide: 0.2em;
|
|
96
|
+
|
|
97
|
+
/* ── radius ─────────────────────────────────────────────────────────── */
|
|
98
|
+
--radius-sm: 4px;
|
|
99
|
+
--radius: 8px;
|
|
100
|
+
--radius-lg: 12px;
|
|
101
|
+
--radius-xl: 20px;
|
|
102
|
+
--radius-full: 9999px;
|
|
103
|
+
|
|
104
|
+
/* ── spacing scale ──────────────────────────────────────────────────── */
|
|
105
|
+
--space-1: 4px;
|
|
106
|
+
--space-2: 8px;
|
|
107
|
+
--space-3: 12px;
|
|
108
|
+
--space-4: 16px;
|
|
109
|
+
--space-5: 24px;
|
|
110
|
+
--space-6: 32px;
|
|
111
|
+
--space-7: 48px;
|
|
112
|
+
--space-8: 64px;
|
|
113
|
+
--space-9: 96px;
|
|
114
|
+
--space-10: 128px;
|
|
115
|
+
|
|
116
|
+
/* ── shadows ────────────────────────────────────────────────────────── */
|
|
117
|
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
118
|
+
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
|
|
119
|
+
--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
|
|
120
|
+
--shadow-glow: 0 0 60px rgba(188, 82, 238, 0.25);
|
|
121
|
+
|
|
122
|
+
/* ── layout ─────────────────────────────────────────────────────────── */
|
|
123
|
+
--page-max: 1600px;
|
|
124
|
+
--page-gutter: clamp(16px, 4vw, 48px);
|
|
125
|
+
--topbar-height: 36px;
|
|
126
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @skaile/forge-brand/nuxt-ui.css: Skaile brand → Nuxt UI 4 bridge, the one stylesheet a
|
|
3
|
+
* Nuxt UI host imports.
|
|
4
|
+
*
|
|
5
|
+
* Maps the semantic tokens Nuxt UI components read (--ui-*) onto the Skaile
|
|
6
|
+
* brand variables from ./theme.css, so every Nuxt UI component
|
|
7
|
+
* takes the brand palette, radius and light/dark switch with no per-app
|
|
8
|
+
* overrides. Nuxt UI 4 components use semantic tokens only, so overriding the
|
|
9
|
+
* semantic set is enough. ./sk.css then maps the forge packages' `--sk-*`
|
|
10
|
+
* tokens onto those `--ui-*` variables.
|
|
11
|
+
*
|
|
12
|
+
* Import AFTER "@nuxt/ui" (equal specificity, source order decides):
|
|
13
|
+
* @import "tailwindcss";
|
|
14
|
+
* @import "@nuxt/ui";
|
|
15
|
+
* @import "@skaile/forge-brand/nuxt-ui.css";
|
|
16
|
+
*/
|
|
17
|
+
@import "./theme.css";
|
|
18
|
+
@import "./sk.css";
|
|
19
|
+
|
|
20
|
+
:root,
|
|
21
|
+
.light,
|
|
22
|
+
.dark {
|
|
23
|
+
--ui-primary: var(--primary);
|
|
24
|
+
--ui-secondary: var(--secondary);
|
|
25
|
+
--ui-success: var(--color-success);
|
|
26
|
+
--ui-warning: var(--color-warning);
|
|
27
|
+
--ui-error: var(--destructive);
|
|
28
|
+
--ui-info: var(--color-ai-accent); /* brand has no info colour */
|
|
29
|
+
--ui-bg: var(--background);
|
|
30
|
+
--ui-bg-muted: var(--muted);
|
|
31
|
+
--ui-bg-elevated: var(--card);
|
|
32
|
+
--ui-bg-accented: var(--accent);
|
|
33
|
+
--ui-bg-inverted: var(--foreground);
|
|
34
|
+
--ui-text: var(--foreground);
|
|
35
|
+
--ui-text-highlighted: var(--foreground);
|
|
36
|
+
--ui-text-toned: var(--foreground);
|
|
37
|
+
--ui-text-muted: var(--muted-foreground);
|
|
38
|
+
--ui-text-dimmed: var(--muted-foreground);
|
|
39
|
+
--ui-text-inverted: var(--primary-foreground);
|
|
40
|
+
--ui-border: var(--border);
|
|
41
|
+
--ui-border-muted: var(--border);
|
|
42
|
+
--ui-border-accented: var(--input);
|
|
43
|
+
--ui-border-inverted: var(--foreground);
|
|
44
|
+
--ui-radius: var(--radius);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
* `--ui-text-inverted` is the label on every solid colour (`bg-primary`, ...)
|
|
49
|
+
* AND on solid neutral (`bg-inverted`). Brand keeps the saturated #7300ff
|
|
50
|
+
* primary with a white label in dark, so the label stays white; only surfaces
|
|
51
|
+
* on `--ui-bg-inverted` (the light --foreground in dark) take the dark page
|
|
52
|
+
* colour. Descendants (alert titles, icons) inherit it.
|
|
53
|
+
*/
|
|
54
|
+
.dark .bg-inverted {
|
|
55
|
+
--ui-text-inverted: var(--background);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*
|
|
59
|
+
* #7300ff on the dark page is ~2.3:1, too faint for the text and outlines
|
|
60
|
+
* Nuxt UI draws in `--ui-primary` (soft/outline badges, active tabs, links).
|
|
61
|
+
* Brand's dark highlight `--color-primary-bright` (#9b40ff) takes over; a
|
|
62
|
+
* white label on it stays above 4.5:1.
|
|
63
|
+
*/
|
|
64
|
+
.dark {
|
|
65
|
+
--ui-primary: var(--color-primary-bright);
|
|
66
|
+
}
|
package/src/css/sk.css
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @skaile/forge-brand/sk.css: the shared `--sk-*` design tokens read by forge packages
|
|
3
|
+
* (@skaile/forge-chat, @skaile/forge-agent-inbox, @skaile/forge-editor) mapped onto Nuxt UI's
|
|
4
|
+
* semantic `--ui-*` variables. `nuxt-ui.css` already includes it; import it on its own only in a
|
|
5
|
+
* Nuxt UI app that keeps its own palette instead of the Skaile brand.
|
|
6
|
+
* Plain `:root` beats the packages' zero-specificity `:where(:root)` defaults; the `--ui-*`
|
|
7
|
+
* values already switch on `.dark`, so no dark-mode rule is needed. A host that sets `--sk-*`
|
|
8
|
+
* later still overrides it.
|
|
9
|
+
*/
|
|
10
|
+
:root {
|
|
11
|
+
--sk-bg: var(--ui-bg);
|
|
12
|
+
--sk-bg-elevated: var(--ui-bg-elevated);
|
|
13
|
+
--sk-bg-accented: var(--ui-bg-accented);
|
|
14
|
+
--sk-fg: var(--ui-text);
|
|
15
|
+
--sk-fg-highlighted: var(--ui-text-highlighted);
|
|
16
|
+
--sk-fg-toned: var(--ui-text-toned);
|
|
17
|
+
--sk-fg-dimmed: var(--ui-text-dimmed);
|
|
18
|
+
--sk-muted: var(--ui-text-muted);
|
|
19
|
+
--sk-border: var(--ui-border);
|
|
20
|
+
--sk-border-accented: var(--ui-border-accented);
|
|
21
|
+
--sk-primary: var(--ui-primary);
|
|
22
|
+
--sk-primary-fg: var(--ui-text-inverted);
|
|
23
|
+
--sk-success: var(--ui-success);
|
|
24
|
+
--sk-warning: var(--ui-warning);
|
|
25
|
+
--sk-danger: var(--ui-error);
|
|
26
|
+
--sk-info: var(--ui-info);
|
|
27
|
+
--sk-radius: var(--ui-radius);
|
|
28
|
+
--sk-font: var(--font-sans);
|
|
29
|
+
}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skaile Brand Theme -- CSS custom properties
|
|
3
|
+
*
|
|
4
|
+
* Source of truth: tokens.json (from brand design in Figma)
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* @import '@skaile/forge-brand/theme.css';
|
|
8
|
+
*
|
|
9
|
+
* Provides light and dark mode via .light / .dark classes on <html>.
|
|
10
|
+
* Falls back to light mode on :root.
|
|
11
|
+
*
|
|
12
|
+
* Brand color: #7300FF (Skaile purple)
|
|
13
|
+
* The platform palettes (`platform-light`, `platform-dark` in tokens.json) come
|
|
14
|
+
* from the platform shell design. They are no longer the website's canonical
|
|
15
|
+
* dark, which `marketing-dark` still carries.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/* ---------------------------------------------------------------------------
|
|
19
|
+
* Light mode (default)
|
|
20
|
+
* ------------------------------------------------------------------------- */
|
|
21
|
+
|
|
22
|
+
:root,
|
|
23
|
+
:root[data-theme="light"],
|
|
24
|
+
.light {
|
|
25
|
+
/* The real property, not a custom one: this is what makes the UA paint
|
|
26
|
+
scrollbars, selects and date pickers to match the theme. */
|
|
27
|
+
color-scheme: light;
|
|
28
|
+
|
|
29
|
+
/* Core palette */
|
|
30
|
+
/* Light lifts its panels off the page; dark sets them into it. The two
|
|
31
|
+
directions are deliberate and were chosen against renders of both: on a
|
|
32
|
+
dark ground a panel reads as a recess, on a light one it reads as a card,
|
|
33
|
+
and forcing one rule onto both gave light a set of grey wells. What the
|
|
34
|
+
themes do share is temperature — every grey here has zero saturation, as
|
|
35
|
+
the platform's dark design does. */
|
|
36
|
+
--background: hsl(0 0% 94%);
|
|
37
|
+
--foreground: hsl(0 0% 11%);
|
|
38
|
+
--card: hsl(0 0% 100%);
|
|
39
|
+
--card-foreground: hsl(0 0% 11%);
|
|
40
|
+
/* Level with the panel, not with the page: a popover floats above the page,
|
|
41
|
+
so it takes the panel's surface. Card and popover being the same white is
|
|
42
|
+
deliberate and is what stock shadcn light does — not one of them left
|
|
43
|
+
un-bumped. */
|
|
44
|
+
--popover: hsl(0 0% 100%);
|
|
45
|
+
--popover-foreground: hsl(0 0% 11%);
|
|
46
|
+
--primary: hsl(267 100% 50%);
|
|
47
|
+
--primary-foreground: hsl(0 0% 100%);
|
|
48
|
+
--secondary: hsl(0 0% 96%);
|
|
49
|
+
--secondary-foreground: hsl(0 0% 40%);
|
|
50
|
+
--muted: hsl(0 0% 96%);
|
|
51
|
+
--muted-foreground: hsl(0 0% 40%);
|
|
52
|
+
/* The hover ground for every menu item in the shell: DropdownMenuItem
|
|
53
|
+
highlights with focus:bg-accent and nothing else. At 96% it sat 1.09:1
|
|
54
|
+
from --popover and was invisible. */
|
|
55
|
+
--accent: hsl(0 0% 88%);
|
|
56
|
+
--accent-foreground: hsl(0 0% 11%);
|
|
57
|
+
--destructive: hsl(0 72.2% 50.6%);
|
|
58
|
+
--destructive-foreground: hsl(0 0% 100%);
|
|
59
|
+
/* The design draws no borders at all — it separates surfaces by step and by
|
|
60
|
+
gap. These stay for the components that still ask for one, dark enough to
|
|
61
|
+
read against a white page. */
|
|
62
|
+
--border: hsl(0 0% 86%);
|
|
63
|
+
--input: hsl(0 0% 86%);
|
|
64
|
+
--ring: hsl(267 100% 50%);
|
|
65
|
+
/* Below the page, so an active tab rises out of the strip and meets the
|
|
66
|
+
panel it belongs to. */
|
|
67
|
+
--tab-bar: hsl(0 0% 91%);
|
|
68
|
+
/* The surface a panel's own content sinks into — the file viewer beside the
|
|
69
|
+
tree. One step below the panel, which here leaves it between the panel and
|
|
70
|
+
the page rather than below both, as in dark.
|
|
71
|
+
It happens to share 96% with --secondary/--muted/--accent above. That is a
|
|
72
|
+
coincidence of this ramp, not a coupling: those three style UI elements,
|
|
73
|
+
this one is a depth. Moving it need not move them. */
|
|
74
|
+
--surface-sunken: hsl(0 0% 96%);
|
|
75
|
+
|
|
76
|
+
/* Skaile-specific */
|
|
77
|
+
--color-success: hsl(161.4 93.5% 30.4%);
|
|
78
|
+
--color-success-foreground: hsl(0 0% 100%);
|
|
79
|
+
--color-warning: hsl(32.1 94.6% 43.7%);
|
|
80
|
+
--color-warning-foreground: hsl(0 0% 11%);
|
|
81
|
+
--color-ai-accent: hsl(37.7 92.1% 50.2%);
|
|
82
|
+
--color-primary-bright: hsl(267 100% 63%);
|
|
83
|
+
--color-surface: hsl(0 0% 100%);
|
|
84
|
+
|
|
85
|
+
/* Chart palette */
|
|
86
|
+
--chart-1: hsl(267 100% 50%);
|
|
87
|
+
--chart-2: hsl(267 100% 63%);
|
|
88
|
+
--chart-3: hsl(271 91% 65%);
|
|
89
|
+
--chart-4: hsl(37.7 92.1% 50.2%);
|
|
90
|
+
--chart-5: hsl(161.4 93.5% 30.4%);
|
|
91
|
+
|
|
92
|
+
/* Sidebar */
|
|
93
|
+
/* Chrome recesses below the page rather than matching it, so the content
|
|
94
|
+
ground reads as the surface in front. Inferred: every screen of the shell
|
|
95
|
+
design is dark-only. */
|
|
96
|
+
--sidebar: hsl(0 0% 89%);
|
|
97
|
+
--sidebar-foreground: hsl(0 0% 11%);
|
|
98
|
+
--sidebar-primary: hsl(267 100% 50%);
|
|
99
|
+
--sidebar-primary-foreground: hsl(0 0% 100%);
|
|
100
|
+
/* A plain grey lift off the sidebar ground, not a purple tint — that is what
|
|
101
|
+
the design's selected row is. shadcn's SidebarMenuButton binds hover and
|
|
102
|
+
active to this one token; separating the two is the consumer's job. */
|
|
103
|
+
--sidebar-accent: hsl(0 0% 96%);
|
|
104
|
+
--sidebar-accent-foreground: hsl(0 0% 11%);
|
|
105
|
+
--sidebar-border: hsl(0 0% 86%);
|
|
106
|
+
--sidebar-ring: hsl(267 100% 50%);
|
|
107
|
+
|
|
108
|
+
/* Shell — header, tabs, toolbar chrome */
|
|
109
|
+
/* Two ramps run in opposite directions on the same header: a tab lifts off
|
|
110
|
+
the header ground because it is a piece of the page pulled forward, a
|
|
111
|
+
control sinks into it because it is a well. Hence two families, not one. */
|
|
112
|
+
/* Inferred throughout — the shell design exists only in dark. */
|
|
113
|
+
/* White in both themes: a selection marker rather than a surface. */
|
|
114
|
+
--tab-active: hsl(0 0% 100%);
|
|
115
|
+
--tab-active-foreground: hsl(0 0% 11%);
|
|
116
|
+
/* Steps away from the header ground instead of toward the active tab, since
|
|
117
|
+
white is already spoken for at the top of this ramp: lifting into it left
|
|
118
|
+
inactive chrome at 1.06:1 against the header. */
|
|
119
|
+
/* No companion foreground: an inactive tab keeps --foreground at full
|
|
120
|
+
strength. Only the fill recedes, so the label stays as readable as the
|
|
121
|
+
active one. */
|
|
122
|
+
--tab-inactive: hsl(0 0% 82%);
|
|
123
|
+
--tab-inactive-hover: hsl(0 0% 87%);
|
|
124
|
+
/* Sampled from the design, and the one shell value both themes share. */
|
|
125
|
+
--tab-unread: #005eff;
|
|
126
|
+
/* The well has to read on the deepest ground it is mounted on, not just on
|
|
127
|
+
the header it was drawn against. At 88% it was 1.08:1 from the header and
|
|
128
|
+
1.03:1 from --sidebar, where the mode toggle sits — so the toggle had no
|
|
129
|
+
container at all. 82% sinks from both. */
|
|
130
|
+
--control-surface: hsl(0 0% 82%);
|
|
131
|
+
--control-surface-hover: hsl(0 0% 76%);
|
|
132
|
+
--control-selected: hsl(0 0% 100%);
|
|
133
|
+
/* Deliberately dimmer than --muted-foreground, and held at the 3:1 non-text
|
|
134
|
+
floor against --control-surface — the design samples about 2.3:1, and this
|
|
135
|
+
is the one place we knowingly part from it. It moves with the track or the
|
|
136
|
+
floor breaks — 49% falls to 2.70:1 once --control-surface sinks. */
|
|
137
|
+
--control-icon: hsl(0 0% 45%);
|
|
138
|
+
/* Stronger than --border against the same ground, because it is the only
|
|
139
|
+
line the shell has left. */
|
|
140
|
+
--content-border: hsl(0 0% 82%);
|
|
141
|
+
|
|
142
|
+
/* Typography */
|
|
143
|
+
--font-sans: "Inter", sans-serif;
|
|
144
|
+
--font-serif: "Plus Jakarta Sans", sans-serif;
|
|
145
|
+
--font-mono: "JetBrains Mono", monospace;
|
|
146
|
+
--font-heading: "Plus Jakarta Sans", sans-serif;
|
|
147
|
+
--font-body: "Inter", sans-serif;
|
|
148
|
+
|
|
149
|
+
/* Layout */
|
|
150
|
+
--radius: 0.375rem;
|
|
151
|
+
--spacing: 0.25rem;
|
|
152
|
+
|
|
153
|
+
/* Shadows */
|
|
154
|
+
--shadow-2xs: 0 1px 2px 0px hsl(0 0% 11% / 0.03);
|
|
155
|
+
--shadow-xs: 0 1px 2px 0px hsl(0 0% 11% / 0.05);
|
|
156
|
+
--shadow-sm: 0 1px 2px 0px hsl(0 0% 11% / 0.05);
|
|
157
|
+
--shadow: 0 4px 6px 0px hsl(0 0% 11% / 0.07);
|
|
158
|
+
--shadow-md: 0 4px 6px 0px hsl(0 0% 11% / 0.07);
|
|
159
|
+
--shadow-lg: 0 10px 15px 0px hsl(0 0% 11% / 0.1);
|
|
160
|
+
--shadow-xl: 0 20px 25px -5px hsl(0 0% 11% / 0.1);
|
|
161
|
+
--shadow-2xl: 0 25px 50px -12px hsl(0 0% 11% / 0.25);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* ---------------------------------------------------------------------------
|
|
165
|
+
* Dark mode
|
|
166
|
+
* ------------------------------------------------------------------------- */
|
|
167
|
+
|
|
168
|
+
:root[data-theme="dark"],
|
|
169
|
+
.dark {
|
|
170
|
+
color-scheme: dark;
|
|
171
|
+
|
|
172
|
+
/* Core palette — taken from the platform shell design, and no longer the
|
|
173
|
+
website's canonical dark: that palette is blue-shifted and lifts a card
|
|
174
|
+
above its page, where this one is neutral and sets a panel into it.
|
|
175
|
+
`marketing-dark` in tokens.json still carries the website values. */
|
|
176
|
+
--background: #242424;
|
|
177
|
+
--foreground: #f5f5f5;
|
|
178
|
+
--card: #1a1919;
|
|
179
|
+
--card-foreground: #f5f5f5;
|
|
180
|
+
--popover: #2f2f2f;
|
|
181
|
+
--popover-foreground: #f5f5f5;
|
|
182
|
+
--primary: #7300ff;
|
|
183
|
+
--primary-foreground: #ffffff;
|
|
184
|
+
--secondary: #2f2f2f;
|
|
185
|
+
--secondary-foreground: #f5f5f5;
|
|
186
|
+
--muted: #2f2f2f;
|
|
187
|
+
--muted-foreground: #a1a1a1;
|
|
188
|
+
/* See the light block. It used to share #323131 with --border/--input,
|
|
189
|
+
which left the menu hover at 1.07:1; the two are unrelated roles that
|
|
190
|
+
collided by accident. This is --tab-inactive-hover, so no new grey. */
|
|
191
|
+
--accent: #4a4a4a;
|
|
192
|
+
--accent-foreground: #f5f5f5;
|
|
193
|
+
--destructive: hsl(0 84.2% 60.2%);
|
|
194
|
+
--destructive-foreground: #ffffff;
|
|
195
|
+
--border: #323131;
|
|
196
|
+
--input: #323131;
|
|
197
|
+
--ring: #7300ff;
|
|
198
|
+
/* See the light block: the strip behind the page that the tab bar sits on.
|
|
199
|
+
It used to share the deepest step with --surface-sunken; --sidebar has
|
|
200
|
+
since taken that step, and the strip now sits one above it. */
|
|
201
|
+
--tab-bar: #1f1e1e;
|
|
202
|
+
/* The surface a panel's own content sinks into — the file viewer beside the
|
|
203
|
+
tree. Third step of the ramp, below the panel. */
|
|
204
|
+
--surface-sunken: #161515;
|
|
205
|
+
|
|
206
|
+
/* Skaile-specific */
|
|
207
|
+
--color-success: hsl(160.1 84.1% 39.4%);
|
|
208
|
+
--color-success-foreground: #ffffff;
|
|
209
|
+
--color-warning: hsl(37.7 92.1% 50.2%);
|
|
210
|
+
--color-warning-foreground: #242424;
|
|
211
|
+
--color-ai-accent: hsl(43.3 96.4% 56.3%);
|
|
212
|
+
--color-primary-bright: #9b40ff;
|
|
213
|
+
--color-surface: #2f2f2f;
|
|
214
|
+
|
|
215
|
+
/* Chart palette */
|
|
216
|
+
--chart-1: #7300ff;
|
|
217
|
+
--chart-2: #9b40ff;
|
|
218
|
+
--chart-3: #bc52ee;
|
|
219
|
+
--chart-4: #f59e0b;
|
|
220
|
+
--chart-5: #10b981;
|
|
221
|
+
|
|
222
|
+
/* Sidebar */
|
|
223
|
+
/* Chrome recesses below the page rather than matching it, so the content
|
|
224
|
+
ground reads as the surface in front. Sampled from the shell design; it
|
|
225
|
+
lands on --surface-sunken's value, one behind the page and one inside a
|
|
226
|
+
panel, and the two are free to move apart. */
|
|
227
|
+
--sidebar: #161515;
|
|
228
|
+
--sidebar-foreground: #f5f5f5;
|
|
229
|
+
--sidebar-primary: #7300ff;
|
|
230
|
+
--sidebar-primary-foreground: #ffffff;
|
|
231
|
+
/* A plain grey lift off the sidebar ground, not a purple tint — that is what
|
|
232
|
+
the design's selected row is. shadcn's SidebarMenuButton binds hover and
|
|
233
|
+
active to this one token; separating the two is the consumer's job. */
|
|
234
|
+
--sidebar-accent: #1f1f1f;
|
|
235
|
+
--sidebar-accent-foreground: #f5f5f5;
|
|
236
|
+
--sidebar-border: #323131;
|
|
237
|
+
--sidebar-ring: #7300ff;
|
|
238
|
+
|
|
239
|
+
/* Shell — header, tabs, toolbar chrome */
|
|
240
|
+
/* Two ramps run in opposite directions on the same header: a tab lifts off
|
|
241
|
+
the header ground because it is a piece of the page pulled forward, a
|
|
242
|
+
control sinks into it because it is a well. Hence two families, not one. */
|
|
243
|
+
/* Sampled from the shell design throughout. */
|
|
244
|
+
/* White in both themes: a selection marker rather than a surface. */
|
|
245
|
+
--tab-active: #ffffff;
|
|
246
|
+
--tab-active-foreground: hsl(0 0% 11%);
|
|
247
|
+
--tab-inactive: #3e3e3e;
|
|
248
|
+
--tab-inactive-hover: #4a4a4a;
|
|
249
|
+
/* The one shell value both themes share. */
|
|
250
|
+
--tab-unread: #005eff;
|
|
251
|
+
/* Dark cannot sink. The well is mounted on two grounds: --background (#242424,
|
|
252
|
+
the toolbar) and --sidebar (#161515, the mode toggle). It cannot sit between
|
|
253
|
+
them without vanishing into one, and it cannot go under --sidebar — pure
|
|
254
|
+
black reaches only 1.15:1 there. So in dark the well inverts and lifts clear
|
|
255
|
+
of both. This is the grey --accent just vacated; no new grey enters.
|
|
256
|
+
Keep --popover (#2f2f2f) off this list of grounds: a control mounted inside
|
|
257
|
+
a menu would land 1.04:1 from it. None does today. */
|
|
258
|
+
--control-surface: #323131;
|
|
259
|
+
--control-surface-hover: #3e3e3e;
|
|
260
|
+
--control-selected: #484747;
|
|
261
|
+
/* Deliberately dimmer than --muted-foreground, and held at the 3:1 non-text
|
|
262
|
+
floor against --control-surface — the design samples about 2.3:1, and this
|
|
263
|
+
is the one place we knowingly part from it. It moves with the track or the
|
|
264
|
+
floor breaks — #666666 falls to 1.9:1 once --control-surface lifts. */
|
|
265
|
+
--control-icon: #7a7a7a;
|
|
266
|
+
/* Stronger than --border against the same ground, because it is the only
|
|
267
|
+
line the shell has left. */
|
|
268
|
+
--content-border: #3e3e3e;
|
|
269
|
+
|
|
270
|
+
/* Typography */
|
|
271
|
+
--font-sans: "Inter", sans-serif;
|
|
272
|
+
--font-serif: "Plus Jakarta Sans", sans-serif;
|
|
273
|
+
--font-mono: "JetBrains Mono", monospace;
|
|
274
|
+
--font-heading: "Plus Jakarta Sans", sans-serif;
|
|
275
|
+
--font-body: "Inter", sans-serif;
|
|
276
|
+
|
|
277
|
+
/* Layout (same as light) */
|
|
278
|
+
--radius: 0.375rem;
|
|
279
|
+
--spacing: 0.25rem;
|
|
280
|
+
|
|
281
|
+
/* Shadows (darker for dark mode) */
|
|
282
|
+
--shadow-2xs: 0 1px 2px 0px hsl(0 0% 0% / 0.05);
|
|
283
|
+
--shadow-xs: 0 1px 2px 0px hsl(0 0% 0% / 0.05);
|
|
284
|
+
--shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
|
|
285
|
+
--shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
|
|
286
|
+
--shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);
|
|
287
|
+
--shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);
|
|
288
|
+
--shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);
|
|
289
|
+
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
|
|
290
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skaile Tailwind CSS preset.
|
|
3
|
+
*
|
|
4
|
+
* Provides the Skaile color palette as Tailwind theme extensions using
|
|
5
|
+
* CSS custom properties. Works with Tailwind CSS v3 and v4.
|
|
6
|
+
*
|
|
7
|
+
* Usage (Tailwind v3 config):
|
|
8
|
+
* import { skaileTailwindPreset } from '@skaile/forge-brand/tailwind-preset'
|
|
9
|
+
* export default { presets: [skaileTailwindPreset] }
|
|
10
|
+
*
|
|
11
|
+
* Usage (Tailwind v4 CSS):
|
|
12
|
+
* @import '@skaile/forge-brand/theme.css';
|
|
13
|
+
* (tokens are automatically available as CSS variables)
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
export const skaileTailwindPreset = {
|
|
17
|
+
theme: {
|
|
18
|
+
extend: {
|
|
19
|
+
colors: {
|
|
20
|
+
background: "var(--background)",
|
|
21
|
+
foreground: "var(--foreground)",
|
|
22
|
+
card: { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },
|
|
23
|
+
popover: { DEFAULT: "var(--popover)", foreground: "var(--popover-foreground)" },
|
|
24
|
+
primary: {
|
|
25
|
+
DEFAULT: "var(--primary)",
|
|
26
|
+
foreground: "var(--primary-foreground)",
|
|
27
|
+
bright: "var(--color-primary-bright)",
|
|
28
|
+
},
|
|
29
|
+
secondary: { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },
|
|
30
|
+
muted: { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },
|
|
31
|
+
accent: { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },
|
|
32
|
+
destructive: { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },
|
|
33
|
+
success: { DEFAULT: "var(--color-success)", foreground: "var(--color-success-foreground)" },
|
|
34
|
+
warning: { DEFAULT: "var(--color-warning)", foreground: "var(--color-warning-foreground)" },
|
|
35
|
+
border: "var(--border)",
|
|
36
|
+
input: "var(--input)",
|
|
37
|
+
ring: "var(--ring)",
|
|
38
|
+
surface: "var(--color-surface)",
|
|
39
|
+
"ai-accent": "var(--color-ai-accent)",
|
|
40
|
+
chart: {
|
|
41
|
+
1: "var(--chart-1)",
|
|
42
|
+
2: "var(--chart-2)",
|
|
43
|
+
3: "var(--chart-3)",
|
|
44
|
+
4: "var(--chart-4)",
|
|
45
|
+
5: "var(--chart-5)",
|
|
46
|
+
},
|
|
47
|
+
sidebar: {
|
|
48
|
+
DEFAULT: "var(--sidebar)",
|
|
49
|
+
foreground: "var(--sidebar-foreground)",
|
|
50
|
+
primary: "var(--sidebar-primary)",
|
|
51
|
+
"primary-foreground": "var(--sidebar-primary-foreground)",
|
|
52
|
+
accent: "var(--sidebar-accent)",
|
|
53
|
+
"accent-foreground": "var(--sidebar-accent-foreground)",
|
|
54
|
+
border: "var(--sidebar-border)",
|
|
55
|
+
ring: "var(--sidebar-ring)",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
fontFamily: {
|
|
59
|
+
sans: ["var(--font-sans)"],
|
|
60
|
+
serif: ["var(--font-serif)"],
|
|
61
|
+
mono: ["var(--font-mono)"],
|
|
62
|
+
heading: ["var(--font-heading)"],
|
|
63
|
+
body: ["var(--font-body)"],
|
|
64
|
+
},
|
|
65
|
+
borderRadius: {
|
|
66
|
+
DEFAULT: "var(--radius)",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
};
|
package/src/tokens.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"brand": {
|
|
3
|
+
"purple": "#7300ff",
|
|
4
|
+
"purple_bright": "#9b40ff",
|
|
5
|
+
"purple_soft": "#bc52ee"
|
|
6
|
+
},
|
|
7
|
+
"fonts": {
|
|
8
|
+
"heading": "Plus Jakarta Sans",
|
|
9
|
+
"body": "Inter",
|
|
10
|
+
"mono": "JetBrains Mono"
|
|
11
|
+
},
|
|
12
|
+
"radius": {
|
|
13
|
+
"sm": "4px",
|
|
14
|
+
"DEFAULT": "8px",
|
|
15
|
+
"lg": "12px",
|
|
16
|
+
"xl": "20px",
|
|
17
|
+
"full": "9999px"
|
|
18
|
+
},
|
|
19
|
+
"status": {
|
|
20
|
+
"success": "#10b981",
|
|
21
|
+
"warning": "#f59e0b",
|
|
22
|
+
"error": "#ef4444"
|
|
23
|
+
},
|
|
24
|
+
"palettes": {
|
|
25
|
+
"marketing-dark": {
|
|
26
|
+
"bg": "#13151a",
|
|
27
|
+
"bg-raised": "#1a1c22",
|
|
28
|
+
"surface": "#23262d",
|
|
29
|
+
"surface-raised": "#2a2d36",
|
|
30
|
+
"border": "#2e303a",
|
|
31
|
+
"border-strong": "#3d404a",
|
|
32
|
+
"text": "#f4f4f5",
|
|
33
|
+
"text-muted": "#a1a1aa",
|
|
34
|
+
"text-dim": "#777777"
|
|
35
|
+
},
|
|
36
|
+
"platform-light": {
|
|
37
|
+
"background": "hsl(0 0% 94%)",
|
|
38
|
+
"tab-bar": "hsl(0 0% 91%)",
|
|
39
|
+
"tab-active": "hsl(0 0% 100%)",
|
|
40
|
+
"tab-active-foreground": "hsl(0 0% 11%)",
|
|
41
|
+
"card": "hsl(0 0% 100%)",
|
|
42
|
+
"popover": "hsl(0 0% 100%)",
|
|
43
|
+
"surface": "hsl(0 0% 100%)",
|
|
44
|
+
"secondary": "hsl(0 0% 96%)",
|
|
45
|
+
"muted": "hsl(0 0% 96%)",
|
|
46
|
+
"accent": "hsl(0 0% 88%)",
|
|
47
|
+
"surface-sunken": "hsl(0 0% 96%)",
|
|
48
|
+
"foreground": "hsl(0 0% 11%)",
|
|
49
|
+
"muted-foreground": "hsl(0 0% 40%)",
|
|
50
|
+
"border": "hsl(0 0% 86%)",
|
|
51
|
+
"primary": "hsl(267 100% 50%)",
|
|
52
|
+
"primary-bright": "hsl(267 100% 63%)",
|
|
53
|
+
"ring": "hsl(267 100% 50%)",
|
|
54
|
+
"sidebar": "hsl(0 0% 89%)",
|
|
55
|
+
"sidebar-accent": "hsl(0 0% 96%)",
|
|
56
|
+
"tab-inactive": "hsl(0 0% 82%)",
|
|
57
|
+
"tab-inactive-hover": "hsl(0 0% 87%)",
|
|
58
|
+
"tab-unread": "#005eff",
|
|
59
|
+
"control-surface": "hsl(0 0% 82%)",
|
|
60
|
+
"control-surface-hover": "hsl(0 0% 76%)",
|
|
61
|
+
"control-selected": "hsl(0 0% 100%)",
|
|
62
|
+
"control-icon": "hsl(0 0% 45%)",
|
|
63
|
+
"content-border": "hsl(0 0% 82%)",
|
|
64
|
+
"sidebar-foreground": "hsl(0 0% 11%)",
|
|
65
|
+
"sidebar-primary": "hsl(267 100% 50%)",
|
|
66
|
+
"sidebar-primary-foreground": "hsl(0 0% 100%)",
|
|
67
|
+
"sidebar-accent-foreground": "hsl(0 0% 11%)",
|
|
68
|
+
"sidebar-border": "hsl(0 0% 86%)",
|
|
69
|
+
"sidebar-ring": "hsl(267 100% 50%)"
|
|
70
|
+
},
|
|
71
|
+
"platform-dark": {
|
|
72
|
+
"background": "#242424",
|
|
73
|
+
"tab-bar": "#1f1e1e",
|
|
74
|
+
"tab-active": "#ffffff",
|
|
75
|
+
"tab-active-foreground": "hsl(0 0% 11%)",
|
|
76
|
+
"card": "#1a1919",
|
|
77
|
+
"popover": "#2f2f2f",
|
|
78
|
+
"surface": "#2f2f2f",
|
|
79
|
+
"secondary": "#2f2f2f",
|
|
80
|
+
"muted": "#2f2f2f",
|
|
81
|
+
"accent": "#4a4a4a",
|
|
82
|
+
"surface-sunken": "#161515",
|
|
83
|
+
"foreground": "#f5f5f5",
|
|
84
|
+
"muted-foreground": "#a1a1a1",
|
|
85
|
+
"border": "#323131",
|
|
86
|
+
"primary": "#7300ff",
|
|
87
|
+
"primary-bright": "#9b40ff",
|
|
88
|
+
"ring": "#7300ff",
|
|
89
|
+
"sidebar": "#161515",
|
|
90
|
+
"sidebar-accent": "#1f1f1f",
|
|
91
|
+
"tab-inactive": "#3e3e3e",
|
|
92
|
+
"tab-inactive-hover": "#4a4a4a",
|
|
93
|
+
"tab-unread": "#005eff",
|
|
94
|
+
"control-surface": "#323131",
|
|
95
|
+
"control-surface-hover": "#3e3e3e",
|
|
96
|
+
"control-selected": "#484747",
|
|
97
|
+
"control-icon": "#7a7a7a",
|
|
98
|
+
"content-border": "#3e3e3e",
|
|
99
|
+
"sidebar-foreground": "#f5f5f5",
|
|
100
|
+
"sidebar-primary": "#7300ff",
|
|
101
|
+
"sidebar-primary-foreground": "#ffffff",
|
|
102
|
+
"sidebar-accent-foreground": "#f5f5f5",
|
|
103
|
+
"sidebar-border": "#323131",
|
|
104
|
+
"sidebar-ring": "#7300ff"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|