@pepperui/tokens 1.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/README.md +101 -0
- package/dist/_tokens.scss +348 -0
- package/dist/figma.json +4503 -0
- package/dist/pepper_tokens.py +819 -0
- package/dist/shadcn.css +125 -0
- package/dist/tailwind.css +213 -0
- package/dist/tailwind.js +214 -0
- package/dist/tokens.css +573 -0
- package/package.json +24 -0
package/dist/shadcn.css
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* shadcn.css — the shadcn variable map (2.7.5, D53): every shadcn name resolves to a Pepper role
|
|
3
|
+
* GENERATED by `npm run build` from tokens/*.json — do not edit by hand.
|
|
4
|
+
* Pepper UI, the Mobupps design system. Source of truth: bitbucket.org/rashidmobupps/pepper-ui
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* Load order: tokens.css → shadcn.css. Each shadcn name below is a reference into tokens.css, never a
|
|
8
|
+
* value — an accent mode switch re-resolves the charts, and a dark theme (D2, not before Q1 2027) would be one
|
|
9
|
+
* more block here, not a second palette. The map itself is build/shadcn-map.json; the reason for each pairing
|
|
10
|
+
* rides beside it. What shadcn expects is customization.md § Color Variables (.claude/skills/shadcn).
|
|
11
|
+
*
|
|
12
|
+
* Tailwind v4: import this file from the app's Tailwind entry and the @theme block registers the names, so
|
|
13
|
+
* bg-primary, text-muted-foreground, rounded-lg, ring-ring resolve. Tailwind v3: tailwind.js carries the
|
|
14
|
+
* same names as theme.extend.colors. No Tailwind at all: the :root block is plain CSS and still applies. */
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
/* shadcn's names, in the order its nova preset writes them (2026-09-08) */
|
|
18
|
+
--background: var(--pui-surface-page); /* The default ground (surface/page). */
|
|
19
|
+
--foreground: var(--pui-text-default); /* Body and headings on light surfaces (D4). */
|
|
20
|
+
--card: var(--pui-surface-card); /* card.css:37 — the card ground, #f2f2f7 not neutral/100 (D5). */
|
|
21
|
+
--card-foreground: var(--pui-text-default); /* Text on a card is the default ink. */
|
|
22
|
+
--popover: var(--pui-surface-page); /* popover.css:29 — Paggy's .bg-pop is the page white with a border/default line, not the card tint. */
|
|
23
|
+
--popover-foreground: var(--pui-text-default);
|
|
24
|
+
--primary: var(--pui-action-primary-bg); /* D53: shadcn's primary is the black button (the site's .btn--dark, button.css), NOT the brand blue — so --primary and --ring never collide. */
|
|
25
|
+
--primary-foreground: var(--pui-action-primary-fg); /* White on the black button. */
|
|
26
|
+
--secondary: var(--pui-action-secondary-bg); /* The outlined button's fill (button.css --secondary). shadcn's secondary is a grey fill; Pepper's is white with border/default, so the Button paints its own secondary variant. */
|
|
27
|
+
--secondary-foreground: var(--pui-action-secondary-fg);
|
|
28
|
+
--muted: var(--pui-surface-sunken); /* Wells and inset panels — where #f2f2f2 belongs. shadcn's quiet fill and hover wash. */
|
|
29
|
+
--muted-foreground: var(--pui-text-muted); /* Secondary text (neutral/600 — D43 keeps captions readable). */
|
|
30
|
+
--accent: var(--pui-surface-sunken); /* shadcn's accent is a HOVER WASH (ghost hover, menu item hover), not Pepper's accent mode: button.css .pui-button--ghost:hover and base.css put it on surface/sunken. The Pepper accent tokens stay --pui-accent-*. */
|
|
31
|
+
--accent-foreground: var(--pui-text-default);
|
|
32
|
+
--destructive: var(--pui-action-danger-bg); /* Paggy's .btn--red on the brand red (D35). shadcn base paints destructive at /10 tint; the Pepper Button paints it solid, as button.css does. */
|
|
33
|
+
--destructive-foreground: var(--pui-action-danger-fg); /* White on red/400 — 4.58:1, the contrast matrix's pair. */
|
|
34
|
+
--border: var(--pui-border-default); /* Card and input borders (neutral/200). */
|
|
35
|
+
--input: var(--pui-border-default); /* input.css:29 — the field border is border/default; focus swaps it for --ring. */
|
|
36
|
+
--ring: var(--pui-border-focus); /* D53: the focus hue (blue/300), QUOTED from styles.css:644–646. base.css paints it at 15 % in a 3 px box-shadow; shadcn paints ring-3 at /50 — the Pepper components use the Pepper ring. */
|
|
37
|
+
--chart-1: var(--pui-accent-chart-1); /* accent/chart/1–5 are accent-MODE tokens: emitted mode-free as --pui-accent-chart-n and re-resolved under [data-accent]. */
|
|
38
|
+
--chart-2: var(--pui-accent-chart-2);
|
|
39
|
+
--chart-3: var(--pui-accent-chart-3);
|
|
40
|
+
--chart-4: var(--pui-accent-chart-4);
|
|
41
|
+
--chart-5: var(--pui-accent-chart-5);
|
|
42
|
+
--radius: var(--pui-radius-8); /* button.css / input.css radius 8 — shadcn derives rounded-sm/md/lg/xl from this one value (× .6 / .8 / 1 / 1.4). Cards are radius/16: reach it as rounded-pui-16 from tailwind.css, not as rounded-2xl (= 14.4). */
|
|
43
|
+
--sidebar: var(--pui-nav-bg); /* sidebar.css — the rail's ground (neutral/800). */
|
|
44
|
+
--sidebar-foreground: var(--pui-nav-item-fg); /* Rest ink of a nav item. */
|
|
45
|
+
--sidebar-primary: var(--pui-nav-item-bg-active); /* The active item's wash (white at 16 %). */
|
|
46
|
+
--sidebar-primary-foreground: var(--pui-nav-item-fg-active);
|
|
47
|
+
--sidebar-accent: var(--pui-nav-item-bg-hover); /* The hover wash (white at 8 %). */
|
|
48
|
+
--sidebar-accent-foreground: var(--pui-nav-item-fg-active);
|
|
49
|
+
--sidebar-border: var(--pui-nav-item-bg-hover); /* The rail has no border token (sidebar.css border: 0; decorative separators are banned) — the hover wash is the only line it may draw, so shadcn's Sidebar separators fall on it. */
|
|
50
|
+
--sidebar-ring: var(--pui-border-focus); /* One focus hue everywhere. */
|
|
51
|
+
|
|
52
|
+
/* Pepper's status pairs — not shadcn names, added the way customization.md § Adding Custom Colors says */
|
|
53
|
+
--success: var(--pui-status-success-bg); /* Not a shadcn name — added the way customization.md § Adding Custom Colors says. MAFO's screens show success, danger and neutral (D53); a shadcn Badge/Alert on the tint pairs. */
|
|
54
|
+
--success-foreground: var(--pui-status-success-fg);
|
|
55
|
+
--warning: var(--pui-status-warning-bg);
|
|
56
|
+
--warning-foreground: var(--pui-status-warning-fg);
|
|
57
|
+
--info: var(--pui-status-info-bg);
|
|
58
|
+
--info-foreground: var(--pui-status-info-fg); /* status/info/solid stays the brand blue (D53) — the tint pair is what text sits on. */
|
|
59
|
+
|
|
60
|
+
/* The focus ring — read from packages/css/src/base.css at build (3.5.5), so the React parts draw the ring
|
|
61
|
+
* @pepperui/css draws: a solid 2 px border/focus line with the soft halo outside it; the error pair; the inset form. */
|
|
62
|
+
--pui-ring-color: color-mix(in srgb, var(--pui-border-focus) 15%, transparent);
|
|
63
|
+
--pui-ring-error-color: color-mix(in srgb, var(--pui-border-error) 10%, transparent);
|
|
64
|
+
--pui-ring: 0 0 0 2px var(--pui-border-focus), 0 0 0 5px var(--pui-ring-color);
|
|
65
|
+
--pui-ring-error: 0 0 0 3px var(--pui-ring-error-color);
|
|
66
|
+
--pui-ring-error-focus: 0 0 0 2px var(--pui-border-error), 0 0 0 5px var(--pui-ring-error-color);
|
|
67
|
+
--pui-ring-inset: inset 0 0 0 2px var(--pui-border-focus);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Tailwind v4 — the block shadcn's preset writes into globals.css. A browser and Tailwind v3 ignore it. */
|
|
71
|
+
@theme inline {
|
|
72
|
+
--color-background: var(--background);
|
|
73
|
+
--color-foreground: var(--foreground);
|
|
74
|
+
--color-card: var(--card);
|
|
75
|
+
--color-card-foreground: var(--card-foreground);
|
|
76
|
+
--color-popover: var(--popover);
|
|
77
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
78
|
+
--color-primary: var(--primary);
|
|
79
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
80
|
+
--color-secondary: var(--secondary);
|
|
81
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
82
|
+
--color-muted: var(--muted);
|
|
83
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
84
|
+
--color-accent: var(--accent);
|
|
85
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
86
|
+
--color-destructive: var(--destructive);
|
|
87
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
88
|
+
--color-border: var(--border);
|
|
89
|
+
--color-input: var(--input);
|
|
90
|
+
--color-ring: var(--ring);
|
|
91
|
+
--color-chart-1: var(--chart-1);
|
|
92
|
+
--color-chart-2: var(--chart-2);
|
|
93
|
+
--color-chart-3: var(--chart-3);
|
|
94
|
+
--color-chart-4: var(--chart-4);
|
|
95
|
+
--color-chart-5: var(--chart-5);
|
|
96
|
+
--color-sidebar: var(--sidebar);
|
|
97
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
98
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
99
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
100
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
101
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
102
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
103
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
104
|
+
--color-success: var(--success);
|
|
105
|
+
--color-success-foreground: var(--success-foreground);
|
|
106
|
+
--color-warning: var(--warning);
|
|
107
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
108
|
+
--color-info: var(--info);
|
|
109
|
+
--color-info-foreground: var(--info-foreground);
|
|
110
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
111
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
112
|
+
--radius-lg: var(--radius);
|
|
113
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
114
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
115
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
116
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Ground modes (tokens.css [data-ground]) — a name that points at a role which follows the ground is declared again
|
|
120
|
+
* where the ground changes: a custom property computes on the element that declares it, so the :root line alone
|
|
121
|
+
* would hand every descendant the page value. */
|
|
122
|
+
[data-ground] {
|
|
123
|
+
--muted: var(--pui-surface-sunken);
|
|
124
|
+
--accent: var(--pui-surface-sunken);
|
|
125
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tailwind.css — the Tailwind v4 theme: every Pepper scale as a `pui-` key, by reference into tokens.css
|
|
3
|
+
* GENERATED by `npm run build` from tokens/*.json — do not edit by hand.
|
|
4
|
+
* Pepper UI, the Mobupps design system. Source of truth: bitbucket.org/rashidmobupps/pepper-ui
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* Load order: tokens.css → shadcn.css → this file, all @imported from the app's Tailwind v4 entry (the file that
|
|
8
|
+
* says @import "tailwindcss"). Tailwind v3 uses tailwind.js instead. Keys carry the token's own name, so the class
|
|
9
|
+
* is the token: p-pui-8 · gap-pui-16 · rounded-pui-16 · text-pui-14 · font-pui-500 · font-pui · shadow-pui-card ·
|
|
10
|
+
* bg-pui-surface-card · text-pui-text-muted · border-pui-border-default · h-control-medium · size-icon-16 ·
|
|
11
|
+
* ease-pui-standard · tablet: / desktop:. Tailwind's own scale stays available; it is not a token (AGENTS.md § 2). */
|
|
12
|
+
|
|
13
|
+
@theme inline {
|
|
14
|
+
/* Colour roles — tier 2 semantic + tier 3 component tokens, never a primitive (components bind roles) */
|
|
15
|
+
--color-pui-icon-list-ink: var(--pui-icon-list-ink);
|
|
16
|
+
--color-pui-table-header-bg: var(--pui-table-header-bg);
|
|
17
|
+
--color-pui-table-header-pill-tint: var(--pui-table-header-pill-tint);
|
|
18
|
+
--color-pui-table-row-selected-bg: var(--pui-table-row-selected-bg);
|
|
19
|
+
--color-pui-table-divider: var(--pui-table-divider);
|
|
20
|
+
--color-pui-card-band: var(--pui-card-band);
|
|
21
|
+
--color-pui-avatar-blue-bg: var(--pui-avatar-blue-bg);
|
|
22
|
+
--color-pui-avatar-blue-fg: var(--pui-avatar-blue-fg);
|
|
23
|
+
--color-pui-avatar-red-bg: var(--pui-avatar-red-bg);
|
|
24
|
+
--color-pui-avatar-red-fg: var(--pui-avatar-red-fg);
|
|
25
|
+
--color-pui-avatar-yellow-bg: var(--pui-avatar-yellow-bg);
|
|
26
|
+
--color-pui-avatar-yellow-fg: var(--pui-avatar-yellow-fg);
|
|
27
|
+
--color-pui-toggle-on-bg: var(--pui-toggle-on-bg);
|
|
28
|
+
--color-pui-toggle-on-fg: var(--pui-toggle-on-fg);
|
|
29
|
+
--color-pui-tabs-track: var(--pui-tabs-track);
|
|
30
|
+
--color-pui-kpi-tone-blue-bg: var(--pui-kpi-tone-blue-bg);
|
|
31
|
+
--color-pui-kpi-tone-red-bg: var(--pui-kpi-tone-red-bg);
|
|
32
|
+
--color-pui-kpi-tone-yellow-bg: var(--pui-kpi-tone-yellow-bg);
|
|
33
|
+
--color-pui-kpi-tone-neutral-bg: var(--pui-kpi-tone-neutral-bg);
|
|
34
|
+
--color-pui-kpi-delta-ring: var(--pui-kpi-delta-ring);
|
|
35
|
+
--color-pui-nav-bg: var(--pui-nav-bg);
|
|
36
|
+
--color-pui-nav-item-fg: var(--pui-nav-item-fg);
|
|
37
|
+
--color-pui-nav-item-fg-active: var(--pui-nav-item-fg-active);
|
|
38
|
+
--color-pui-nav-item-bg-hover: var(--pui-nav-item-bg-hover);
|
|
39
|
+
--color-pui-nav-item-bg-active: var(--pui-nav-item-bg-active);
|
|
40
|
+
--color-pui-nav-section-fg: var(--pui-nav-section-fg);
|
|
41
|
+
--color-pui-illustration-shell: var(--pui-illustration-shell);
|
|
42
|
+
--color-pui-illustration-surface: var(--pui-illustration-surface);
|
|
43
|
+
--color-pui-illustration-detail: var(--pui-illustration-detail);
|
|
44
|
+
--color-pui-illustration-screen: var(--pui-illustration-screen);
|
|
45
|
+
--color-pui-illustration-deck: var(--pui-illustration-deck);
|
|
46
|
+
--color-pui-illustration-text: var(--pui-illustration-text);
|
|
47
|
+
--color-pui-illustration-outline-color: var(--pui-illustration-outline-color);
|
|
48
|
+
--color-pui-illustration-connector-color: var(--pui-illustration-connector-color);
|
|
49
|
+
--color-pui-illustration-arrow-color: var(--pui-illustration-arrow-color);
|
|
50
|
+
--color-pui-text-default: var(--pui-text-default);
|
|
51
|
+
--color-pui-text-muted: var(--pui-text-muted);
|
|
52
|
+
--color-pui-text-subtle: var(--pui-text-subtle);
|
|
53
|
+
--color-pui-text-on-accent: var(--pui-text-on-accent);
|
|
54
|
+
--color-pui-text-on-inverse: var(--pui-text-on-inverse);
|
|
55
|
+
--color-pui-text-link: var(--pui-text-link);
|
|
56
|
+
--color-pui-text-disabled: var(--pui-text-disabled);
|
|
57
|
+
--color-pui-text-error: var(--pui-text-error);
|
|
58
|
+
--color-pui-text-caption: var(--pui-text-caption);
|
|
59
|
+
--color-pui-surface-page: var(--pui-surface-page);
|
|
60
|
+
--color-pui-surface-card: var(--pui-surface-card);
|
|
61
|
+
--color-pui-surface-sunken: var(--pui-surface-sunken);
|
|
62
|
+
--color-pui-surface-inverse: var(--pui-surface-inverse);
|
|
63
|
+
--color-pui-surface-slot: var(--pui-surface-slot);
|
|
64
|
+
--color-pui-surface-glass: var(--pui-surface-glass);
|
|
65
|
+
--color-pui-surface-glass-strong: var(--pui-surface-glass-strong);
|
|
66
|
+
--color-pui-overlay-scrim: var(--pui-overlay-scrim);
|
|
67
|
+
--color-pui-border-default: var(--pui-border-default);
|
|
68
|
+
--color-pui-border-strong: var(--pui-border-strong);
|
|
69
|
+
--color-pui-border-focus: var(--pui-border-focus);
|
|
70
|
+
--color-pui-border-error: var(--pui-border-error);
|
|
71
|
+
--color-pui-action-primary-bg: var(--pui-action-primary-bg);
|
|
72
|
+
--color-pui-action-primary-bg-hover: var(--pui-action-primary-bg-hover);
|
|
73
|
+
--color-pui-action-primary-fg: var(--pui-action-primary-fg);
|
|
74
|
+
--color-pui-action-secondary-bg: var(--pui-action-secondary-bg);
|
|
75
|
+
--color-pui-action-secondary-bg-hover: var(--pui-action-secondary-bg-hover);
|
|
76
|
+
--color-pui-action-secondary-fg: var(--pui-action-secondary-fg);
|
|
77
|
+
--color-pui-action-secondary-border: var(--pui-action-secondary-border);
|
|
78
|
+
--color-pui-action-danger-bg: var(--pui-action-danger-bg);
|
|
79
|
+
--color-pui-action-danger-bg-hover: var(--pui-action-danger-bg-hover);
|
|
80
|
+
--color-pui-action-danger-fg: var(--pui-action-danger-fg);
|
|
81
|
+
--color-pui-action-disabled-bg: var(--pui-action-disabled-bg);
|
|
82
|
+
--color-pui-action-disabled-fg: var(--pui-action-disabled-fg);
|
|
83
|
+
--color-pui-status-success-bg: var(--pui-status-success-bg);
|
|
84
|
+
--color-pui-status-success-fg: var(--pui-status-success-fg);
|
|
85
|
+
--color-pui-status-success-solid: var(--pui-status-success-solid);
|
|
86
|
+
--color-pui-status-danger-bg: var(--pui-status-danger-bg);
|
|
87
|
+
--color-pui-status-danger-fg: var(--pui-status-danger-fg);
|
|
88
|
+
--color-pui-status-danger-solid: var(--pui-status-danger-solid);
|
|
89
|
+
--color-pui-status-warning-bg: var(--pui-status-warning-bg);
|
|
90
|
+
--color-pui-status-warning-fg: var(--pui-status-warning-fg);
|
|
91
|
+
--color-pui-status-warning-solid: var(--pui-status-warning-solid);
|
|
92
|
+
--color-pui-status-info-bg: var(--pui-status-info-bg);
|
|
93
|
+
--color-pui-status-info-fg: var(--pui-status-info-fg);
|
|
94
|
+
--color-pui-status-info-solid: var(--pui-status-info-solid);
|
|
95
|
+
--color-pui-tint-neutral-bg: var(--pui-tint-neutral-bg);
|
|
96
|
+
--color-pui-tint-neutral-fg: var(--pui-tint-neutral-fg);
|
|
97
|
+
--color-pui-tint-blue-bg: var(--pui-tint-blue-bg);
|
|
98
|
+
--color-pui-tint-blue-fg: var(--pui-tint-blue-fg);
|
|
99
|
+
--color-pui-tint-red-bg: var(--pui-tint-red-bg);
|
|
100
|
+
--color-pui-tint-red-fg: var(--pui-tint-red-fg);
|
|
101
|
+
--color-pui-tint-yellow-bg: var(--pui-tint-yellow-bg);
|
|
102
|
+
--color-pui-tint-yellow-fg: var(--pui-tint-yellow-fg);
|
|
103
|
+
--color-pui-tint-green-bg: var(--pui-tint-green-bg);
|
|
104
|
+
--color-pui-tint-green-fg: var(--pui-tint-green-fg);
|
|
105
|
+
--color-pui-accent-main: var(--pui-accent-main);
|
|
106
|
+
--color-pui-accent-light: var(--pui-accent-light);
|
|
107
|
+
--color-pui-accent-lighter: var(--pui-accent-lighter);
|
|
108
|
+
--color-pui-accent-bg: var(--pui-accent-bg);
|
|
109
|
+
--color-pui-accent-dark: var(--pui-accent-dark);
|
|
110
|
+
--color-pui-accent-on-accent: var(--pui-accent-on-accent);
|
|
111
|
+
--color-pui-accent-heading: var(--pui-accent-heading);
|
|
112
|
+
--color-pui-accent-icon-ink: var(--pui-accent-icon-ink);
|
|
113
|
+
--color-pui-accent-text: var(--pui-accent-text);
|
|
114
|
+
--color-pui-accent-selected: var(--pui-accent-selected);
|
|
115
|
+
--color-pui-accent-pill-tint: var(--pui-accent-pill-tint);
|
|
116
|
+
--color-pui-accent-chart-1: var(--pui-accent-chart-1);
|
|
117
|
+
--color-pui-accent-chart-2: var(--pui-accent-chart-2);
|
|
118
|
+
--color-pui-accent-chart-3: var(--pui-accent-chart-3);
|
|
119
|
+
--color-pui-accent-chart-4: var(--pui-accent-chart-4);
|
|
120
|
+
--color-pui-accent-chart-5: var(--pui-accent-chart-5);
|
|
121
|
+
--color-pui-accent-gradient-far: var(--pui-accent-gradient-far);
|
|
122
|
+
--color-pui-chart-text: var(--pui-chart-text);
|
|
123
|
+
--color-pui-chart-grid: var(--pui-chart-grid);
|
|
124
|
+
--color-pui-chart-rest: var(--pui-chart-rest);
|
|
125
|
+
--color-pui-chart-on-fill: var(--pui-chart-on-fill);
|
|
126
|
+
|
|
127
|
+
/* Spacing steps — p-pui-8, gap-pui-16, w-pui-24 */
|
|
128
|
+
--spacing-pui-2: var(--pui-space-2);
|
|
129
|
+
--spacing-pui-4: var(--pui-space-4);
|
|
130
|
+
--spacing-pui-8: var(--pui-space-8);
|
|
131
|
+
--spacing-pui-12: var(--pui-space-12);
|
|
132
|
+
--spacing-pui-16: var(--pui-space-16);
|
|
133
|
+
--spacing-pui-20: var(--pui-space-20);
|
|
134
|
+
--spacing-pui-24: var(--pui-space-24);
|
|
135
|
+
--spacing-pui-32: var(--pui-space-32);
|
|
136
|
+
--spacing-pui-40: var(--pui-space-40);
|
|
137
|
+
--spacing-pui-48: var(--pui-space-48);
|
|
138
|
+
--spacing-pui-64: var(--pui-space-64);
|
|
139
|
+
--spacing-pui-80: var(--pui-space-80);
|
|
140
|
+
|
|
141
|
+
/* Sizes — h-control-medium (size/control, D41), size-icon-16 (size/icon) */
|
|
142
|
+
--spacing-icon-16: var(--pui-size-icon-16);
|
|
143
|
+
--spacing-icon-24: var(--pui-size-icon-24);
|
|
144
|
+
--spacing-icon-32: var(--pui-size-icon-32);
|
|
145
|
+
--spacing-icon-48: var(--pui-size-icon-48);
|
|
146
|
+
--spacing-control-small: var(--pui-size-control-small);
|
|
147
|
+
--spacing-control-medium: var(--pui-size-control-medium);
|
|
148
|
+
--spacing-control-large: var(--pui-size-control-large);
|
|
149
|
+
|
|
150
|
+
/* Radius — rounded-pui-8; shadcn's rounded-lg is --radius (= radius/8) from shadcn.css */
|
|
151
|
+
--radius-pui-4: var(--pui-radius-4);
|
|
152
|
+
--radius-pui-8: var(--pui-radius-8);
|
|
153
|
+
--radius-pui-16: var(--pui-radius-16);
|
|
154
|
+
--radius-pui-32: var(--pui-radius-32);
|
|
155
|
+
--radius-pui-64: var(--pui-radius-64);
|
|
156
|
+
--radius-pui-full: var(--pui-radius-full);
|
|
157
|
+
|
|
158
|
+
/* Type — font-pui is the face (Poppins; Onest under lang="ru" through base.css); text-pui-14; font-pui-500; leading-pui-normal; tracking-pui-normal */
|
|
159
|
+
--font-pui: var(--pui-font-family, var(--pui-font-family-poppins));
|
|
160
|
+
--text-pui-12: var(--pui-font-size-12);
|
|
161
|
+
--text-pui-13: var(--pui-font-size-13);
|
|
162
|
+
--text-pui-14: var(--pui-font-size-14);
|
|
163
|
+
--text-pui-15: var(--pui-font-size-15);
|
|
164
|
+
--text-pui-16: var(--pui-font-size-16);
|
|
165
|
+
--text-pui-18: var(--pui-font-size-18);
|
|
166
|
+
--text-pui-20: var(--pui-font-size-20);
|
|
167
|
+
--text-pui-22: var(--pui-font-size-22);
|
|
168
|
+
--text-pui-24: var(--pui-font-size-24);
|
|
169
|
+
--text-pui-25: var(--pui-font-size-25);
|
|
170
|
+
--text-pui-26: var(--pui-font-size-26);
|
|
171
|
+
--text-pui-28: var(--pui-font-size-28);
|
|
172
|
+
--text-pui-32: var(--pui-font-size-32);
|
|
173
|
+
--text-pui-36: var(--pui-font-size-36);
|
|
174
|
+
--text-pui-40: var(--pui-font-size-40);
|
|
175
|
+
--text-pui-41: var(--pui-font-size-41);
|
|
176
|
+
--text-pui-45: var(--pui-font-size-45);
|
|
177
|
+
--text-pui-46: var(--pui-font-size-46);
|
|
178
|
+
--text-pui-48: var(--pui-font-size-48);
|
|
179
|
+
--text-pui-64: var(--pui-font-size-64);
|
|
180
|
+
--text-pui-65: var(--pui-font-size-65);
|
|
181
|
+
--text-pui-66: var(--pui-font-size-66);
|
|
182
|
+
--text-pui-92: var(--pui-font-size-92);
|
|
183
|
+
--text-pui-117: var(--pui-font-size-117);
|
|
184
|
+
--text-pui-148: var(--pui-font-size-148);
|
|
185
|
+
--font-weight-pui-400: var(--pui-font-weight-400);
|
|
186
|
+
--font-weight-pui-500: var(--pui-font-weight-500);
|
|
187
|
+
--font-weight-pui-600: var(--pui-font-weight-600);
|
|
188
|
+
--font-weight-pui-700: var(--pui-font-weight-700);
|
|
189
|
+
--leading-pui-tight: var(--pui-font-line-height-tight);
|
|
190
|
+
--leading-pui-normal: var(--pui-font-line-height-normal);
|
|
191
|
+
--leading-pui-relaxed: var(--pui-font-line-height-relaxed);
|
|
192
|
+
--leading-pui-loose: var(--pui-font-line-height-loose);
|
|
193
|
+
--tracking-pui-normal: var(--pui-font-letter-spacing-normal);
|
|
194
|
+
--tracking-pui-tight: var(--pui-font-letter-spacing-tight);
|
|
195
|
+
--tracking-pui-wide: var(--pui-font-letter-spacing-wide);
|
|
196
|
+
--tracking-pui-wider: var(--pui-font-letter-spacing-wider);
|
|
197
|
+
|
|
198
|
+
/* Elevation — shadow-pui-card (the four roles; the raw shadow steps stay in tokens.css) */
|
|
199
|
+
--shadow-pui-flat: var(--pui-elevation-flat);
|
|
200
|
+
--shadow-pui-card: var(--pui-elevation-card);
|
|
201
|
+
--shadow-pui-floating: var(--pui-elevation-floating);
|
|
202
|
+
--shadow-pui-modal: var(--pui-elevation-modal);
|
|
203
|
+
|
|
204
|
+
/* Motion — ease-pui-standard. Durations are not a theme namespace: duration-[var(--pui-motion-state)] */
|
|
205
|
+
--ease-pui-standard: var(--pui-easing-standard);
|
|
206
|
+
--ease-pui-decelerate: var(--pui-easing-decelerate);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* Breakpoints resolve into media queries, which cannot read a custom property — so these two are values, not references. */
|
|
210
|
+
@theme {
|
|
211
|
+
--breakpoint-tablet: 768px;
|
|
212
|
+
--breakpoint-desktop: 1024px;
|
|
213
|
+
}
|
package/dist/tailwind.js
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/** Tailwind preset — GENERATED from tokens/*.json, do not edit by hand.
|
|
2
|
+
* Consumed by the products (MAFO, iRTB) via `presets: [require('@pepperui/tokens/tailwind')]`. */
|
|
3
|
+
export default {
|
|
4
|
+
"theme": {
|
|
5
|
+
"extend": {
|
|
6
|
+
"colors": {
|
|
7
|
+
"neutral": {
|
|
8
|
+
"0": "#ffffff",
|
|
9
|
+
"100": "#f2f2f2",
|
|
10
|
+
"200": "#dad9d9",
|
|
11
|
+
"300": "#b5b3b3",
|
|
12
|
+
"400": "#858080",
|
|
13
|
+
"500": "#6c6666",
|
|
14
|
+
"600": "#544d4d",
|
|
15
|
+
"700": "#3b3333",
|
|
16
|
+
"800": "#231b1b",
|
|
17
|
+
"900": "#0b0202",
|
|
18
|
+
"1000": "#000000"
|
|
19
|
+
},
|
|
20
|
+
"blue": {
|
|
21
|
+
"100": "#e9e9fb",
|
|
22
|
+
"200": "#d4d3f7",
|
|
23
|
+
"300": "#6a66e4",
|
|
24
|
+
"400": "#2b25d9",
|
|
25
|
+
"500": "#221dad",
|
|
26
|
+
"600": "#110e56",
|
|
27
|
+
"700": "#0c0b41"
|
|
28
|
+
},
|
|
29
|
+
"red": {
|
|
30
|
+
"100": "#fce9e8",
|
|
31
|
+
"200": "#f9d3d2",
|
|
32
|
+
"300": "#ec6663",
|
|
33
|
+
"400": "#e42521",
|
|
34
|
+
"500": "#b61d1a",
|
|
35
|
+
"600": "#5b0e0d",
|
|
36
|
+
"700": "#440b09"
|
|
37
|
+
},
|
|
38
|
+
"yellow": {
|
|
39
|
+
"100": "#fef9e9",
|
|
40
|
+
"200": "#fdf3d3",
|
|
41
|
+
"300": "#fad567",
|
|
42
|
+
"400": "#f9c426",
|
|
43
|
+
"500": "#c79c1e",
|
|
44
|
+
"600": "#634e0f",
|
|
45
|
+
"700": "#4a3a0b"
|
|
46
|
+
},
|
|
47
|
+
"green": {
|
|
48
|
+
"100": "#d4f2de",
|
|
49
|
+
"400": "#74af36",
|
|
50
|
+
"600": "#1a6b36"
|
|
51
|
+
},
|
|
52
|
+
"status": {
|
|
53
|
+
"success": {
|
|
54
|
+
"bg": "#d4f2de",
|
|
55
|
+
"fg": "#1a6b36",
|
|
56
|
+
"solid": "#74af36"
|
|
57
|
+
},
|
|
58
|
+
"danger": {
|
|
59
|
+
"bg": "#fce9e8",
|
|
60
|
+
"fg": "#5b0e0d",
|
|
61
|
+
"solid": "#da4144"
|
|
62
|
+
},
|
|
63
|
+
"warning": {
|
|
64
|
+
"bg": "#fef9e9",
|
|
65
|
+
"fg": "#634e0f",
|
|
66
|
+
"solid": "#f9c426"
|
|
67
|
+
},
|
|
68
|
+
"info": {
|
|
69
|
+
"bg": "#e9e9fb",
|
|
70
|
+
"fg": "#110e56",
|
|
71
|
+
"solid": "#2b25d9"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"light-blue": {
|
|
75
|
+
"50": "#fbfbfd",
|
|
76
|
+
"100": "#f2f2f7"
|
|
77
|
+
},
|
|
78
|
+
"gradient-stop": {
|
|
79
|
+
"pink": "#f24288",
|
|
80
|
+
"orchid": "#ebb8fc",
|
|
81
|
+
"magenta": "#d947d6"
|
|
82
|
+
},
|
|
83
|
+
"alpha": {
|
|
84
|
+
"neutral-800-50": "#231b1b80",
|
|
85
|
+
"white-8": "#ffffff14",
|
|
86
|
+
"white-16": "#ffffff29",
|
|
87
|
+
"black-7": "#00000012",
|
|
88
|
+
"grey-232-49": "#e8e8e87d",
|
|
89
|
+
"white-71": "#ffffffb5"
|
|
90
|
+
},
|
|
91
|
+
"text": {
|
|
92
|
+
"default": "#0b0202",
|
|
93
|
+
"muted": "#544d4d",
|
|
94
|
+
"subtle": "#858080",
|
|
95
|
+
"on-accent": "#ffffff",
|
|
96
|
+
"on-inverse": "#ffffff",
|
|
97
|
+
"link": "#2b25d9",
|
|
98
|
+
"disabled": "#b5b3b3",
|
|
99
|
+
"error": "#e42521",
|
|
100
|
+
"caption": "#544d4d"
|
|
101
|
+
},
|
|
102
|
+
"surface": {
|
|
103
|
+
"page": "#ffffff",
|
|
104
|
+
"card": "#f2f2f7",
|
|
105
|
+
"sunken": "#f2f2f2",
|
|
106
|
+
"inverse": "#231b1b",
|
|
107
|
+
"slot": "#ffffff",
|
|
108
|
+
"glass": "#e8e8e87d",
|
|
109
|
+
"glass-strong": "#ffffffb5"
|
|
110
|
+
},
|
|
111
|
+
"border": {
|
|
112
|
+
"default": "#dad9d9",
|
|
113
|
+
"strong": "#858080",
|
|
114
|
+
"focus": "#6a66e4",
|
|
115
|
+
"error": "#e42521"
|
|
116
|
+
},
|
|
117
|
+
"action": {
|
|
118
|
+
"primary": {
|
|
119
|
+
"bg": "#0b0202",
|
|
120
|
+
"bg-hover": "#3b3333",
|
|
121
|
+
"fg": "#ffffff"
|
|
122
|
+
},
|
|
123
|
+
"secondary": {
|
|
124
|
+
"bg": "#ffffff",
|
|
125
|
+
"bg-hover": "#f2f2f2",
|
|
126
|
+
"fg": "#0b0202",
|
|
127
|
+
"border": "#dad9d9"
|
|
128
|
+
},
|
|
129
|
+
"danger": {
|
|
130
|
+
"bg": "#e42521",
|
|
131
|
+
"bg-hover": "#b61d1a",
|
|
132
|
+
"fg": "#ffffff"
|
|
133
|
+
},
|
|
134
|
+
"disabled": {
|
|
135
|
+
"bg": "#f2f2f2",
|
|
136
|
+
"fg": "#b5b3b3"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"spacing": {
|
|
141
|
+
"2": "2px",
|
|
142
|
+
"4": "4px",
|
|
143
|
+
"8": "8px",
|
|
144
|
+
"12": "12px",
|
|
145
|
+
"16": "16px",
|
|
146
|
+
"20": "20px",
|
|
147
|
+
"24": "24px",
|
|
148
|
+
"32": "32px",
|
|
149
|
+
"40": "40px",
|
|
150
|
+
"48": "48px",
|
|
151
|
+
"64": "64px",
|
|
152
|
+
"80": "80px"
|
|
153
|
+
},
|
|
154
|
+
"borderRadius": {
|
|
155
|
+
"4": "4px",
|
|
156
|
+
"8": "8px",
|
|
157
|
+
"16": "16px",
|
|
158
|
+
"32": "32px",
|
|
159
|
+
"64": "64px",
|
|
160
|
+
"full": "9999px"
|
|
161
|
+
},
|
|
162
|
+
"fontSize": {
|
|
163
|
+
"12": "12px",
|
|
164
|
+
"13": "13px",
|
|
165
|
+
"14": "14px",
|
|
166
|
+
"15": "15px",
|
|
167
|
+
"16": "16px",
|
|
168
|
+
"18": "18px",
|
|
169
|
+
"20": "20px",
|
|
170
|
+
"22": "22px",
|
|
171
|
+
"24": "24px",
|
|
172
|
+
"25": "25px",
|
|
173
|
+
"26": "26px",
|
|
174
|
+
"28": "28px",
|
|
175
|
+
"32": "32px",
|
|
176
|
+
"36": "36px",
|
|
177
|
+
"40": "40px",
|
|
178
|
+
"41": "41px",
|
|
179
|
+
"45": "45px",
|
|
180
|
+
"46": "46px",
|
|
181
|
+
"48": "48px",
|
|
182
|
+
"64": "64px",
|
|
183
|
+
"65": "65px",
|
|
184
|
+
"66": "66px",
|
|
185
|
+
"92": "92px",
|
|
186
|
+
"117": "117px",
|
|
187
|
+
"148": "148px"
|
|
188
|
+
},
|
|
189
|
+
"fontWeight": {
|
|
190
|
+
"400": 400,
|
|
191
|
+
"500": 500,
|
|
192
|
+
"600": 600,
|
|
193
|
+
"700": 700
|
|
194
|
+
},
|
|
195
|
+
"boxShadow": {
|
|
196
|
+
"sm": "0px 1px 2px 0px #0000000d",
|
|
197
|
+
"lg": "0px 24px 48px -12px #0000002e",
|
|
198
|
+
"xl": "0px 24px 64px 0px #1510511f",
|
|
199
|
+
"xxl": "0px 32px 64px 0px #00000024"
|
|
200
|
+
},
|
|
201
|
+
"transitionDuration": {
|
|
202
|
+
"instant": "50ms",
|
|
203
|
+
"fast": "150ms",
|
|
204
|
+
"medium": "200ms",
|
|
205
|
+
"slow": "250ms",
|
|
206
|
+
"slower": "300ms"
|
|
207
|
+
},
|
|
208
|
+
"screens": {
|
|
209
|
+
"tablet": "768px",
|
|
210
|
+
"desktop": "1024px"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|