@agentero/design-system 0.0.1
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/LICENSE +201 -0
- package/README.md +53 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/utils.d.ts +2 -0
- package/lib/utils.js +6 -0
- package/package.json +46 -0
- package/src/avatar/avatar.d.ts +229 -0
- package/src/avatar/avatar.js +120 -0
- package/src/avatar/index.d.ts +1 -0
- package/src/avatar/index.js +2 -0
- package/theme/base.css +701 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# @agentero/design-system
|
|
2
|
+
|
|
3
|
+
A React component library built with [Tailwind CSS v4](https://tailwindcss.com/) and [Radix UI](https://www.radix-ui.com/) primitives. Each component is individually importable, fully typed, and designed to integrate seamlessly into any Tailwind-based project.
|
|
4
|
+
|
|
5
|
+
[Storybook](https://agentero.github.io/design-system/) | [npm](https://www.npmjs.com/package/@agentero/design-system)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
yarn add @agentero/design-system
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Peer dependencies
|
|
14
|
+
|
|
15
|
+
This package requires the following peer dependencies:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
yarn add react react-dom tailwindcss
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Setup
|
|
22
|
+
|
|
23
|
+
### Tailwind CSS configuration
|
|
24
|
+
|
|
25
|
+
Add the design system as a Tailwind source so that the CSS for component classes is generated:
|
|
26
|
+
|
|
27
|
+
```css
|
|
28
|
+
/* app.css */
|
|
29
|
+
@import 'tailwindcss';
|
|
30
|
+
@source "@agentero/design-system/theme";
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Components
|
|
34
|
+
|
|
35
|
+
```tsx
|
|
36
|
+
import { ComponentName } from '@agentero/design-system/ComponentName';
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Utilities
|
|
40
|
+
|
|
41
|
+
### `cn`
|
|
42
|
+
|
|
43
|
+
A class name merging utility combining `clsx` and `tailwind-merge`. Useful for conditionally joining Tailwind classes without conflicts.
|
|
44
|
+
|
|
45
|
+
```tsx
|
|
46
|
+
import { cn } from '@agentero/design-system/lib';
|
|
47
|
+
|
|
48
|
+
cn('px-4 py-2', isActive && 'bg-blue-500', className);
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## License
|
|
52
|
+
|
|
53
|
+
[Apache-2.0](./LICENSE)
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils';
|
package/lib/index.js
ADDED
package/lib/utils.d.ts
ADDED
package/lib/utils.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentero/design-system",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A React component library built with Tailwind CSS v4 and Radix UI primitives",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"homepage": "https://agentero.github.io/design-system/",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/agentero/design-system.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/agentero/design-system/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"react",
|
|
18
|
+
"design-system",
|
|
19
|
+
"components",
|
|
20
|
+
"tailwindcss",
|
|
21
|
+
"radix-ui"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
"./avatar": {
|
|
25
|
+
"types": "./src/avatar/index.d.ts",
|
|
26
|
+
"import": "./src/avatar/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./lib": {
|
|
29
|
+
"types": "./lib/index.d.ts",
|
|
30
|
+
"import": "./lib/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./theme": "./theme/base.css",
|
|
33
|
+
"./package.json": "./package.json"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^19.2.4",
|
|
37
|
+
"react-dom": "^19.2.4",
|
|
38
|
+
"tailwindcss": "^4.0.0"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
42
|
+
"clsx": "^2.1.1",
|
|
43
|
+
"tailwind-merge": "^3.5.0",
|
|
44
|
+
"tailwind-variants": "^3.2.2"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
/**
|
|
5
|
+
* Style recipe for Avatar using tailwind-variants.
|
|
6
|
+
* Defines slots (`root`, `image`, `fallback`) and variants (`size`, `variant`).
|
|
7
|
+
* Customize avatar appearance by composing these slots and variants.
|
|
8
|
+
*/
|
|
9
|
+
export declare const avatarRecipe: import('tailwind-variants').TVReturnType<{
|
|
10
|
+
size: {
|
|
11
|
+
xs: {
|
|
12
|
+
root: string;
|
|
13
|
+
fallback: string;
|
|
14
|
+
};
|
|
15
|
+
sm: {
|
|
16
|
+
root: string;
|
|
17
|
+
fallback: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
root: string;
|
|
21
|
+
fallback: string;
|
|
22
|
+
};
|
|
23
|
+
lg: {
|
|
24
|
+
root: string;
|
|
25
|
+
fallback: string;
|
|
26
|
+
};
|
|
27
|
+
xl: {
|
|
28
|
+
root: string;
|
|
29
|
+
fallback: string;
|
|
30
|
+
};
|
|
31
|
+
'2xl': {
|
|
32
|
+
root: string;
|
|
33
|
+
fallback: string;
|
|
34
|
+
};
|
|
35
|
+
'3xl': {
|
|
36
|
+
root: string;
|
|
37
|
+
fallback: string;
|
|
38
|
+
};
|
|
39
|
+
'4xl': {
|
|
40
|
+
root: string;
|
|
41
|
+
fallback: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
variant: {
|
|
45
|
+
circle: {
|
|
46
|
+
root: string;
|
|
47
|
+
};
|
|
48
|
+
square: {
|
|
49
|
+
root: string;
|
|
50
|
+
};
|
|
51
|
+
pillow: {
|
|
52
|
+
root: string[];
|
|
53
|
+
};
|
|
54
|
+
pentagon: {
|
|
55
|
+
root: string[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}, {
|
|
59
|
+
root: string[];
|
|
60
|
+
image: string[];
|
|
61
|
+
fallback: string[];
|
|
62
|
+
}, undefined, {
|
|
63
|
+
size: {
|
|
64
|
+
xs: {
|
|
65
|
+
root: string;
|
|
66
|
+
fallback: string;
|
|
67
|
+
};
|
|
68
|
+
sm: {
|
|
69
|
+
root: string;
|
|
70
|
+
fallback: string;
|
|
71
|
+
};
|
|
72
|
+
md: {
|
|
73
|
+
root: string;
|
|
74
|
+
fallback: string;
|
|
75
|
+
};
|
|
76
|
+
lg: {
|
|
77
|
+
root: string;
|
|
78
|
+
fallback: string;
|
|
79
|
+
};
|
|
80
|
+
xl: {
|
|
81
|
+
root: string;
|
|
82
|
+
fallback: string;
|
|
83
|
+
};
|
|
84
|
+
'2xl': {
|
|
85
|
+
root: string;
|
|
86
|
+
fallback: string;
|
|
87
|
+
};
|
|
88
|
+
'3xl': {
|
|
89
|
+
root: string;
|
|
90
|
+
fallback: string;
|
|
91
|
+
};
|
|
92
|
+
'4xl': {
|
|
93
|
+
root: string;
|
|
94
|
+
fallback: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
variant: {
|
|
98
|
+
circle: {
|
|
99
|
+
root: string;
|
|
100
|
+
};
|
|
101
|
+
square: {
|
|
102
|
+
root: string;
|
|
103
|
+
};
|
|
104
|
+
pillow: {
|
|
105
|
+
root: string[];
|
|
106
|
+
};
|
|
107
|
+
pentagon: {
|
|
108
|
+
root: string[];
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
root: string[];
|
|
113
|
+
image: string[];
|
|
114
|
+
fallback: string[];
|
|
115
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
116
|
+
size: {
|
|
117
|
+
xs: {
|
|
118
|
+
root: string;
|
|
119
|
+
fallback: string;
|
|
120
|
+
};
|
|
121
|
+
sm: {
|
|
122
|
+
root: string;
|
|
123
|
+
fallback: string;
|
|
124
|
+
};
|
|
125
|
+
md: {
|
|
126
|
+
root: string;
|
|
127
|
+
fallback: string;
|
|
128
|
+
};
|
|
129
|
+
lg: {
|
|
130
|
+
root: string;
|
|
131
|
+
fallback: string;
|
|
132
|
+
};
|
|
133
|
+
xl: {
|
|
134
|
+
root: string;
|
|
135
|
+
fallback: string;
|
|
136
|
+
};
|
|
137
|
+
'2xl': {
|
|
138
|
+
root: string;
|
|
139
|
+
fallback: string;
|
|
140
|
+
};
|
|
141
|
+
'3xl': {
|
|
142
|
+
root: string;
|
|
143
|
+
fallback: string;
|
|
144
|
+
};
|
|
145
|
+
'4xl': {
|
|
146
|
+
root: string;
|
|
147
|
+
fallback: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
variant: {
|
|
151
|
+
circle: {
|
|
152
|
+
root: string;
|
|
153
|
+
};
|
|
154
|
+
square: {
|
|
155
|
+
root: string;
|
|
156
|
+
};
|
|
157
|
+
pillow: {
|
|
158
|
+
root: string[];
|
|
159
|
+
};
|
|
160
|
+
pentagon: {
|
|
161
|
+
root: string[];
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
}, {
|
|
165
|
+
root: string[];
|
|
166
|
+
image: string[];
|
|
167
|
+
fallback: string[];
|
|
168
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
169
|
+
type AvatarVariants = VariantProps<typeof avatarRecipe>;
|
|
170
|
+
type AvatarSlotsStyles = ReturnType<typeof avatarRecipe>;
|
|
171
|
+
type AvatarContextValue = AvatarVariants & {
|
|
172
|
+
slotsStyles: AvatarSlotsStyles;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Returns the current Avatar context including variant props and computed slot styles.
|
|
176
|
+
* Must be called within an `AvatarRoot` (or `Avatar`) component tree.
|
|
177
|
+
*
|
|
178
|
+
* @summary Access avatar context for size, variant, and slot styles
|
|
179
|
+
*/
|
|
180
|
+
export declare const useAvatar: () => AvatarContextValue;
|
|
181
|
+
type AvatarProps = ComponentPropsWithRef<typeof AvatarPrimitive.Root> & {
|
|
182
|
+
/** Accessible alt text describing the avatar image. Required when `src` is provided. */
|
|
183
|
+
alt?: string;
|
|
184
|
+
/** Image URL to display. When unavailable or loading fails, `fallback` content is shown instead. */
|
|
185
|
+
src?: string;
|
|
186
|
+
/** Content rendered when `src` is missing or fails to load. Typically user initials (e.g., "JD") or an icon. */
|
|
187
|
+
fallback?: ReactNode;
|
|
188
|
+
/**
|
|
189
|
+
* Controls the avatar dimensions. Defaults to `'md'` (40px).
|
|
190
|
+
* - `xs` (24px) — inline indicators, dense lists
|
|
191
|
+
* - `sm` (32px) — compact layouts, table rows
|
|
192
|
+
* - `md` (40px) — standard usage, cards, headers
|
|
193
|
+
* - `lg` (48px) — profile sections, detail views
|
|
194
|
+
* - `xl` (64px) — hero sections, prominent display
|
|
195
|
+
* - `2xl` (80px), `3xl` (96px), `4xl` (128px) — large feature areas, profile pages
|
|
196
|
+
*/
|
|
197
|
+
size?: AvatarVariants['size'];
|
|
198
|
+
/**
|
|
199
|
+
* Shape of the avatar container. Defaults to `'circle'`.
|
|
200
|
+
* - `circle` — standard round avatar for user photos
|
|
201
|
+
* - `square` — rounded rectangle, suitable for workspace or team icons
|
|
202
|
+
* - `pillow` — soft, organic squircle shape
|
|
203
|
+
* - `pentagon` — distinctive five-sided shape for unique visual identity
|
|
204
|
+
*/
|
|
205
|
+
variant?: AvatarVariants['variant'];
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Avatar displays a user's profile image, initials, or a fallback icon.
|
|
209
|
+
* Use Avatar for user identification in lists, headers, cards, and comment threads.
|
|
210
|
+
*
|
|
211
|
+
* Do **not** use Avatar for decorative images or thumbnails unrelated to a person
|
|
212
|
+
* or entity — use a standard `<img>` or a Thumbnail component instead.
|
|
213
|
+
*
|
|
214
|
+
* Renders an image when `src` is provided; otherwise displays `fallback` content
|
|
215
|
+
* (typically initials or an icon). Built on Radix UI Avatar primitives.
|
|
216
|
+
*
|
|
217
|
+
* Available shapes: `circle` (default), `square`, `pillow`, and `pentagon`.
|
|
218
|
+
* Sizes range from `xs` (24px) to `4xl` (128px), defaulting to `md` (40px).
|
|
219
|
+
*
|
|
220
|
+
* @summary Displays a user's profile image, initials, or fallback icon
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* <Avatar src="/photos/jane.jpg" alt="Jane Doe" size="md" variant="circle" />
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* <Avatar fallback="JD" size="lg" variant="square" />
|
|
227
|
+
*/
|
|
228
|
+
export declare const Avatar: ({ alt, src, fallback, size, variant, ref, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
229
|
+
export {};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { createContext as t, use as n } from "react";
|
|
4
|
+
import * as r from "@radix-ui/react-avatar";
|
|
5
|
+
import { tv as i } from "tailwind-variants";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
//#region src/avatar/avatar.tsx
|
|
8
|
+
var s = i({
|
|
9
|
+
slots: {
|
|
10
|
+
root: [
|
|
11
|
+
"flex items-center justify-center align-middle",
|
|
12
|
+
"overflow-hidden select-none box-border",
|
|
13
|
+
"shrink-0 relative font-inherit",
|
|
14
|
+
"m-0 outline-none p-0 font-semibold",
|
|
15
|
+
"text-text-default-base-primary bg-bg-default-base-primary",
|
|
16
|
+
"border-solid border-[length:var(--avatar-border-width,1px)]",
|
|
17
|
+
"border-[var(--avatar-border-color,var(--color-border-default-base-primary))]",
|
|
18
|
+
"h-fit w-fit"
|
|
19
|
+
],
|
|
20
|
+
image: ["flex object-cover box-border h-full vertical-align-middle w-full"],
|
|
21
|
+
fallback: ["uppercase", "[&_svg]:size-[1.5em] [&_svg]:fill-neutral-500"]
|
|
22
|
+
},
|
|
23
|
+
variants: {
|
|
24
|
+
size: {
|
|
25
|
+
xs: {
|
|
26
|
+
root: "size-6",
|
|
27
|
+
fallback: "text-xs leading-[1.125rem] [&_svg]:size-[0.9375rem]"
|
|
28
|
+
},
|
|
29
|
+
sm: {
|
|
30
|
+
root: "size-8",
|
|
31
|
+
fallback: "text-sm"
|
|
32
|
+
},
|
|
33
|
+
md: {
|
|
34
|
+
root: "size-10",
|
|
35
|
+
fallback: "text-base"
|
|
36
|
+
},
|
|
37
|
+
lg: {
|
|
38
|
+
root: "size-12",
|
|
39
|
+
fallback: "text-lg"
|
|
40
|
+
},
|
|
41
|
+
xl: {
|
|
42
|
+
root: "size-16",
|
|
43
|
+
fallback: "text-[1.375rem]"
|
|
44
|
+
},
|
|
45
|
+
"2xl": {
|
|
46
|
+
root: "size-20",
|
|
47
|
+
fallback: "text-[1.625rem]"
|
|
48
|
+
},
|
|
49
|
+
"3xl": {
|
|
50
|
+
root: "size-24",
|
|
51
|
+
fallback: "text-[2rem]"
|
|
52
|
+
},
|
|
53
|
+
"4xl": {
|
|
54
|
+
root: "size-32",
|
|
55
|
+
fallback: "text-[3rem]"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
variant: {
|
|
59
|
+
circle: { root: "rounded-full" },
|
|
60
|
+
square: { root: "rounded-md" },
|
|
61
|
+
pillow: { root: [
|
|
62
|
+
"rounded-[38.5%]",
|
|
63
|
+
"[mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAwJyBoZWlnaHQ9JzIwMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNMTAwIDBDMjAgMCAwIDIwIDAgMTAwczIwIDEwMCAxMDAgMTAwIDEwMC0yMCAxMDAtMTAwUzE4MCAwIDEwMCAwWicvPjwvc3ZnPg==)]",
|
|
64
|
+
"[mask-size:contain]"
|
|
65
|
+
] },
|
|
66
|
+
pentagon: { root: [
|
|
67
|
+
"!border-none border-transparent",
|
|
68
|
+
"[mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzMiIHZpZXdCb3g9IjAgMCAzMyAzMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjU2NTcgMC4yNTA5NzdDMTUuODM0OCAtMC4wODM2NTk0IDE3LjE2NTggLTAuMDgzNjU4NCAxOC40MzQ4IDAuMjUwOTc3QzE5Ljg5NDIgMC42MzU4OCAyMS4yMTMzIDEuNjMwODkgMjMuNjM0IDMuNDM3NUwyNy4yNDQ0IDYuMTMxODRDMjkuNjY3IDcuOTM5OCAzMC45OTMyIDguOTE5NzcgMzEuNzk4MSAxMC4yMjI3QzMyLjQ5NzcgMTEuMzU1IDMyLjkwNzYgMTIuNjQ5OCAzMi45ODk1IDEzLjk4NjNDMzMuMDgzNSAxNS41MjI3IDMyLjU3MjQgMTcuMTExOSAzMS42NDY3IDIwLjAzODFMMzAuMjY3OCAyNC4zOTc1QzI5LjM0MjUgMjcuMzIyNyAyOC44NDU4IDI4LjkxODIgMjcuODg4OSAzMC4xMDY0QzI3LjA1NjEgMzEuMTQwNiAyNS45ODA4IDMxLjk0MzIgMjQuNzYzIDMyLjQzODVDMjMuMzYxNSAzMy4wMDg0IDIxLjcyMzggMzMgMTguNzMxNyAzM0gxNC4yNjg4QzExLjI3NjcgMzMgOS42MzkwNCAzMy4wMDg0IDguMjM3NiAzMi40Mzg1QzcuMDE5NzUgMzEuOTQzMiA1Ljk0NDQ4IDMxLjE0MDYgNS4xMTE2MiAzMC4xMDY0QzQuMTU0NzIgMjguOTE4MiAzLjY1ODAyIDI3LjMyMjcgMi43MzI3MiAyNC4zOTc1TDEuMzUzODEgMjAuMDM4MUMwLjQyODE4NyAxNy4xMTE5IC0wLjA4Mjk0NiAxNS41MjI3IDAuMDExMDM5IDEzLjk4NjNDMC4wOTI5MDMgMTIuNjQ5OCAwLjUwMjg4MSAxMS4zNTUgMS4yMDI0NCAxMC4yMjI3QzIuMDA3NCA4LjkxOTc3IDMuMzMzNTggNy45Mzk4IDUuNzU2MTYgNi4xMzE4NEw5LjM2NjUxIDMuNDM3NUMxMS43ODcyIDEuNjMwODkgMTMuMTA2MyAwLjYzNTg4IDE0LjU2NTcgMC4yNTA5NzdaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K)]",
|
|
69
|
+
"[mask-size:contain] [mask-repeat:no-repeat] [mask-position:center]"
|
|
70
|
+
] }
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
size: "md",
|
|
75
|
+
variant: "circle"
|
|
76
|
+
}
|
|
77
|
+
}), c = t(null), l = () => {
|
|
78
|
+
let e = n(c);
|
|
79
|
+
if (!e) throw Error("useAvatar must be used within an AvatarProvider");
|
|
80
|
+
return e;
|
|
81
|
+
}, u = ({ size: t, variant: n, ...i }) => {
|
|
82
|
+
let o = s({
|
|
83
|
+
size: t,
|
|
84
|
+
variant: n
|
|
85
|
+
});
|
|
86
|
+
return /* @__PURE__ */ a(c, {
|
|
87
|
+
value: {
|
|
88
|
+
size: t,
|
|
89
|
+
variant: n,
|
|
90
|
+
slotsStyles: o
|
|
91
|
+
},
|
|
92
|
+
children: /* @__PURE__ */ a(r.Root, {
|
|
93
|
+
...i,
|
|
94
|
+
className: e(o.root(), i.className)
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}, d = (t) => {
|
|
98
|
+
let { slotsStyles: n } = l();
|
|
99
|
+
return /* @__PURE__ */ a(r.Image, {
|
|
100
|
+
...t,
|
|
101
|
+
className: e(n.image(), t.className)
|
|
102
|
+
});
|
|
103
|
+
}, f = (t) => {
|
|
104
|
+
let { slotsStyles: n } = l();
|
|
105
|
+
return /* @__PURE__ */ a(r.Fallback, {
|
|
106
|
+
...t,
|
|
107
|
+
className: e(n.fallback(), t.className)
|
|
108
|
+
});
|
|
109
|
+
}, p = ({ alt: e, src: t, fallback: n, size: r, variant: i, ref: s, ...c }) => /* @__PURE__ */ o(u, {
|
|
110
|
+
...c,
|
|
111
|
+
ref: s,
|
|
112
|
+
size: r,
|
|
113
|
+
variant: i,
|
|
114
|
+
children: [/* @__PURE__ */ a(d, {
|
|
115
|
+
alt: e,
|
|
116
|
+
src: t
|
|
117
|
+
}), /* @__PURE__ */ a(f, { children: n })]
|
|
118
|
+
});
|
|
119
|
+
//#endregion
|
|
120
|
+
export { p as Avatar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Avatar } from './avatar';
|
package/theme/base.css
ADDED
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
/* ========================================
|
|
3
|
+
* TYPOGRAPHY
|
|
4
|
+
* ======================================== */
|
|
5
|
+
|
|
6
|
+
/* Font Families */
|
|
7
|
+
--default-font-family: "Inter", sans-serif;
|
|
8
|
+
--font-family-body: "Inter", sans-serif;
|
|
9
|
+
|
|
10
|
+
/* ========================================
|
|
11
|
+
* TEXT STYLES (Typography Utilities)
|
|
12
|
+
* Migrated from Panda textStyles
|
|
13
|
+
* ======================================== */
|
|
14
|
+
|
|
15
|
+
/* Default Tailwind text sizes */
|
|
16
|
+
--text-2xs: 0.625rem; /* 10px */
|
|
17
|
+
--text-2xs--line-height: 1rem; /* 16px */
|
|
18
|
+
--text-xs: 0.75rem; /* 12px */
|
|
19
|
+
--text-xs--line-height: 1.125rem; /* 18px */
|
|
20
|
+
--text-xs--letter-spacing: 0.0105rem; /* 0.168px */
|
|
21
|
+
|
|
22
|
+
--text-sm: 0.875rem; /* 14px */
|
|
23
|
+
--text-sm--line-height: 1.375rem; /* 22px */
|
|
24
|
+
|
|
25
|
+
/* Tailwind base text size mapped to design system body.md */
|
|
26
|
+
--text-base: 1rem; /* 16px */
|
|
27
|
+
--text-base--line-height: 1.5rem; /* 24px */
|
|
28
|
+
|
|
29
|
+
--text-lg: 1.125rem; /* 18px */
|
|
30
|
+
--text-lg--line-height: 1.75rem; /* 28px */
|
|
31
|
+
|
|
32
|
+
--text-xl: 1.25rem; /* 20px */
|
|
33
|
+
--text-xl--line-height: 1.5rem; /* 24px */
|
|
34
|
+
|
|
35
|
+
--text-2xl: 1.5rem; /* 24px */
|
|
36
|
+
--text-2xl--line-height: 2.25rem; /* 36px */
|
|
37
|
+
|
|
38
|
+
--text-3xl: 2rem; /* 32px */
|
|
39
|
+
--text-3xl--line-height: 3rem; /* 48px */
|
|
40
|
+
|
|
41
|
+
--text-4xl: 2.5rem; /* 40px */
|
|
42
|
+
--text-4xl--line-height: 3.75rem; /* 60px */
|
|
43
|
+
|
|
44
|
+
--text-5xl: 3rem; /* 48px */
|
|
45
|
+
--text-5xl--line-height: 4.5rem; /* 72px */
|
|
46
|
+
|
|
47
|
+
--text-6xl: 4rem; /* 64px */
|
|
48
|
+
--text-6xl--line-height: 6rem; /* 96px */
|
|
49
|
+
|
|
50
|
+
--text-7xl: 4.5rem; /* 72px */
|
|
51
|
+
--text-7xl--line-height: 6.75rem; /* 108px */
|
|
52
|
+
|
|
53
|
+
--text-8xl: 6rem; /* 96px */
|
|
54
|
+
--text-8xl--line-height: 9rem; /* 144px */
|
|
55
|
+
|
|
56
|
+
--text-9xl: 8rem; /* 128px - Tailwind default */
|
|
57
|
+
--text-9xl--line-height: 1;
|
|
58
|
+
|
|
59
|
+
/* ========================================
|
|
60
|
+
* COLORS - Base Palette
|
|
61
|
+
* ======================================== */
|
|
62
|
+
|
|
63
|
+
/* Neutrals Scale */
|
|
64
|
+
--color-neutrals-000: #ffffff;
|
|
65
|
+
--color-neutrals-050: #f3f3f3;
|
|
66
|
+
--color-neutrals-100: #e3e3e3;
|
|
67
|
+
--color-neutrals-200: #cdcdcd;
|
|
68
|
+
--color-neutrals-300: #b2b2b2;
|
|
69
|
+
--color-neutrals-400: #949494;
|
|
70
|
+
--color-neutrals-500: #767676;
|
|
71
|
+
--color-neutrals-600: #5a5a5a;
|
|
72
|
+
--color-neutrals-700: #434343;
|
|
73
|
+
--color-neutrals-800: #303030;
|
|
74
|
+
--color-neutrals-900: #242424;
|
|
75
|
+
--color-neutrals-1000: #000000;
|
|
76
|
+
|
|
77
|
+
/* Slate Scale (deprecated but keep for compatibility) */
|
|
78
|
+
--color-slate-050: #f7f8fa;
|
|
79
|
+
--color-slate-100: #ebedf2;
|
|
80
|
+
--color-slate-200: #cfd2db;
|
|
81
|
+
--color-slate-300: #b3b8c7;
|
|
82
|
+
--color-slate-400: #949aad;
|
|
83
|
+
--color-slate-500: #727a91;
|
|
84
|
+
--color-slate-600: #5a6072;
|
|
85
|
+
--color-slate-700: #434856;
|
|
86
|
+
--color-slate-800: #2d3039;
|
|
87
|
+
--color-slate-900: #16181d;
|
|
88
|
+
|
|
89
|
+
/* Brand (Teal/Green) Scale */
|
|
90
|
+
--color-brand-050: #eafaf5;
|
|
91
|
+
--color-brand-100: #d6f5ec;
|
|
92
|
+
--color-brand-200: #adebd8;
|
|
93
|
+
--color-brand-300: #84e1c5;
|
|
94
|
+
--color-brand-400: #5bd7b2;
|
|
95
|
+
--color-brand-500: #32cd9f;
|
|
96
|
+
--color-brand-600: #28a47f;
|
|
97
|
+
--color-brand-700: #1e7b5f;
|
|
98
|
+
--color-brand-800: #14523f;
|
|
99
|
+
--color-brand-900: #0a2920;
|
|
100
|
+
|
|
101
|
+
/* Positive (Green) Scale */
|
|
102
|
+
--color-positive-050: #e8fcec;
|
|
103
|
+
--color-positive-100: #d1fada;
|
|
104
|
+
--color-positive-200: #a3f5b5;
|
|
105
|
+
--color-positive-300: #75f090;
|
|
106
|
+
--color-positive-400: #47eb6b;
|
|
107
|
+
--color-positive-500: #19e646;
|
|
108
|
+
--color-positive-600: #14b838;
|
|
109
|
+
--color-positive-700: #0f8a2a;
|
|
110
|
+
--color-positive-800: #0a5c1c;
|
|
111
|
+
--color-positive-900: #052e0e;
|
|
112
|
+
|
|
113
|
+
/* Danger (Red) Scale */
|
|
114
|
+
--color-danger-050: #fbe9e9;
|
|
115
|
+
--color-danger-100: #f7d4d4;
|
|
116
|
+
--color-danger-200: #f0a8a8;
|
|
117
|
+
--color-danger-300: #e87d7d;
|
|
118
|
+
--color-danger-400: #e05252;
|
|
119
|
+
--color-danger-500: #d92626;
|
|
120
|
+
--color-danger-600: #ad1f1f;
|
|
121
|
+
--color-danger-700: #821717;
|
|
122
|
+
--color-danger-800: #570f0f;
|
|
123
|
+
--color-danger-900: #2b0808;
|
|
124
|
+
|
|
125
|
+
/* Warning (Yellow) Scale */
|
|
126
|
+
--color-warning-050: #fef8e6;
|
|
127
|
+
--color-warning-100: #fdf1ce;
|
|
128
|
+
--color-warning-200: #fbe49d;
|
|
129
|
+
--color-warning-300: #fad66b;
|
|
130
|
+
--color-warning-400: #f8c83a;
|
|
131
|
+
--color-warning-500: #f6bb09;
|
|
132
|
+
--color-warning-600: #c59507;
|
|
133
|
+
--color-warning-700: #947005;
|
|
134
|
+
--color-warning-800: #624b04;
|
|
135
|
+
--color-warning-900: #312502;
|
|
136
|
+
|
|
137
|
+
/* Orange Scale */
|
|
138
|
+
--color-orange-050: #fef0e6;
|
|
139
|
+
--color-orange-100: #fee1cd;
|
|
140
|
+
--color-orange-200: #fcc49c;
|
|
141
|
+
--color-orange-300: #fba66a;
|
|
142
|
+
--color-orange-400: #fa8938;
|
|
143
|
+
--color-orange-500: #f96b06;
|
|
144
|
+
--color-orange-600: #c75605;
|
|
145
|
+
--color-orange-700: #954004;
|
|
146
|
+
--color-orange-800: #632b03;
|
|
147
|
+
--color-orange-900: #321501;
|
|
148
|
+
|
|
149
|
+
/* Blue Scale */
|
|
150
|
+
--color-blue-050: #e6f1fe;
|
|
151
|
+
--color-blue-100: #cee3fd;
|
|
152
|
+
--color-blue-200: #9cc7fc;
|
|
153
|
+
--color-blue-300: #6babfa;
|
|
154
|
+
--color-blue-400: #398ff9;
|
|
155
|
+
--color-blue-500: #0874f7;
|
|
156
|
+
--color-blue-600: #065cc6;
|
|
157
|
+
--color-blue-700: #054594;
|
|
158
|
+
--color-blue-800: #032e63;
|
|
159
|
+
--color-blue-900: #021731;
|
|
160
|
+
|
|
161
|
+
/* Purple Scale */
|
|
162
|
+
--color-purple-050: #f3e7fe;
|
|
163
|
+
--color-purple-100: #e6cefd;
|
|
164
|
+
--color-purple-200: #ce9efa;
|
|
165
|
+
--color-purple-300: #b56df8;
|
|
166
|
+
--color-purple-400: #9c3cf6;
|
|
167
|
+
--color-purple-500: #830bf4;
|
|
168
|
+
--color-purple-600: #6909c3;
|
|
169
|
+
--color-purple-700: #4f0792;
|
|
170
|
+
--color-purple-800: #350561;
|
|
171
|
+
--color-purple-900: #1a0231;
|
|
172
|
+
|
|
173
|
+
/* Pink Scale */
|
|
174
|
+
--color-pink-050: #fde8f0;
|
|
175
|
+
--color-pink-100: #fbd0e1;
|
|
176
|
+
--color-pink-200: #f7a1c3;
|
|
177
|
+
--color-pink-300: #f372a6;
|
|
178
|
+
--color-pink-400: #ef4388;
|
|
179
|
+
--color-pink-500: #eb146a;
|
|
180
|
+
--color-pink-600: #bc1055;
|
|
181
|
+
--color-pink-700: #8d0c40;
|
|
182
|
+
--color-pink-800: #5e082a;
|
|
183
|
+
--color-pink-900: #2f0415;
|
|
184
|
+
|
|
185
|
+
/* Overlay Colors (rgba for transparency) */
|
|
186
|
+
--color-overlay-dark-900: rgba(22, 24, 29, 0.9);
|
|
187
|
+
--color-overlay-dark-800: rgba(22, 24, 29, 0.8);
|
|
188
|
+
--color-overlay-dark-700: rgba(22, 24, 29, 0.7);
|
|
189
|
+
--color-overlay-dark-600: rgba(22, 24, 29, 0.6);
|
|
190
|
+
--color-overlay-dark-500: rgba(22, 24, 29, 0.5);
|
|
191
|
+
--color-overlay-dark-400: rgba(22, 24, 29, 0.4);
|
|
192
|
+
--color-overlay-dark-300: rgba(22, 24, 29, 0.3);
|
|
193
|
+
--color-overlay-dark-200: rgba(22, 24, 29, 0.2);
|
|
194
|
+
--color-overlay-dark-100: rgba(22, 24, 29, 0.1);
|
|
195
|
+
--color-overlay-dark-050: rgba(22, 24, 29, 0.05);
|
|
196
|
+
|
|
197
|
+
--color-overlay-light-900: rgba(255, 255, 255, 0.9);
|
|
198
|
+
--color-overlay-light-800: rgba(255, 255, 255, 0.8);
|
|
199
|
+
--color-overlay-light-700: rgba(255, 255, 255, 0.7);
|
|
200
|
+
--color-overlay-light-600: rgba(255, 255, 255, 0.6);
|
|
201
|
+
--color-overlay-light-500: rgba(255, 255, 255, 0.5);
|
|
202
|
+
--color-overlay-light-400: rgba(255, 255, 255, 0.4);
|
|
203
|
+
--color-overlay-light-300: rgba(255, 255, 255, 0.3);
|
|
204
|
+
--color-overlay-light-200: rgba(255, 255, 255, 0.2);
|
|
205
|
+
--color-overlay-light-100: rgba(255, 255, 255, 0.1);
|
|
206
|
+
--color-overlay-light-050: rgba(255, 255, 255, 0.05);
|
|
207
|
+
|
|
208
|
+
/* ========================================
|
|
209
|
+
* SEMANTIC COLOR TOKENS
|
|
210
|
+
* ======================================== */
|
|
211
|
+
|
|
212
|
+
/* Background Tokens */
|
|
213
|
+
--color-bg-default-base-primary: var(--color-neutrals-000);
|
|
214
|
+
--color-bg-default-base-primary-hover: var(--color-slate-100);
|
|
215
|
+
--color-bg-default-base-secondary: var(--color-slate-050);
|
|
216
|
+
--color-bg-default-base-secondary-hover: var(--color-slate-200);
|
|
217
|
+
--color-bg-default-base-tertiary: var(--color-slate-100);
|
|
218
|
+
--color-bg-default-base-tertiary-hover: var(--color-slate-300);
|
|
219
|
+
|
|
220
|
+
--color-bg-default-neutral-primary: var(--color-neutrals-050);
|
|
221
|
+
--color-bg-default-neutral-primary-hover: var(--color-neutrals-100);
|
|
222
|
+
--color-bg-default-neutral-secondary: var(--color-neutrals-100);
|
|
223
|
+
--color-bg-default-neutral-secondary-hover: var(--color-neutrals-200);
|
|
224
|
+
--color-bg-default-neutral-tertiary: var(--color-neutrals-200);
|
|
225
|
+
--color-bg-default-neutral-tertiary-hover: var(--color-neutrals-300);
|
|
226
|
+
|
|
227
|
+
--color-bg-default-brand-primary: var(--color-brand-500);
|
|
228
|
+
--color-bg-default-brand-primary-hover: var(--color-brand-600);
|
|
229
|
+
--color-bg-default-brand-secondary: var(--color-brand-200);
|
|
230
|
+
--color-bg-default-brand-secondary-hover: var(--color-brand-300);
|
|
231
|
+
--color-bg-default-brand-tertiary: var(--color-brand-050);
|
|
232
|
+
--color-bg-default-brand-tertiary-hover: var(--color-brand-100);
|
|
233
|
+
|
|
234
|
+
--color-bg-default-positive-primary: var(--color-positive-500);
|
|
235
|
+
--color-bg-default-positive-primary-hover: var(--color-positive-600);
|
|
236
|
+
--color-bg-default-positive-secondary: var(--color-positive-200);
|
|
237
|
+
--color-bg-default-positive-secondary-hover: var(--color-positive-300);
|
|
238
|
+
--color-bg-default-positive-tertiary: var(--color-positive-050);
|
|
239
|
+
--color-bg-default-positive-tertiary-hover: var(--color-positive-100);
|
|
240
|
+
|
|
241
|
+
--color-bg-default-danger-primary: var(--color-danger-500);
|
|
242
|
+
--color-bg-default-danger-primary-hover: var(--color-danger-600);
|
|
243
|
+
--color-bg-default-danger-secondary: var(--color-danger-200);
|
|
244
|
+
--color-bg-default-danger-secondary-hover: var(--color-danger-300);
|
|
245
|
+
--color-bg-default-danger-tertiary: var(--color-danger-050);
|
|
246
|
+
--color-bg-default-danger-tertiary-hover: var(--color-danger-100);
|
|
247
|
+
|
|
248
|
+
--color-bg-default-warning-primary: var(--color-warning-500);
|
|
249
|
+
--color-bg-default-warning-primary-hover: var(--color-warning-600);
|
|
250
|
+
--color-bg-default-warning-secondary: var(--color-warning-200);
|
|
251
|
+
--color-bg-default-warning-secondary-hover: var(--color-warning-300);
|
|
252
|
+
--color-bg-default-warning-tertiary: var(--color-warning-050);
|
|
253
|
+
--color-bg-default-warning-tertiary-hover: var(--color-warning-100);
|
|
254
|
+
|
|
255
|
+
--color-bg-default-disable-primary: var(--color-neutrals-050);
|
|
256
|
+
|
|
257
|
+
/* Input Backgrounds */
|
|
258
|
+
--color-bg-input-normal: var(--color-neutrals-000);
|
|
259
|
+
--color-bg-input-disable: var(--color-slate-050);
|
|
260
|
+
|
|
261
|
+
/* Button Backgrounds */
|
|
262
|
+
--color-bg-button-primary-enable: var(--color-slate-700);
|
|
263
|
+
--color-bg-button-primary-hover: var(--color-slate-800);
|
|
264
|
+
--color-bg-button-primary-disable: var(--color-slate-100);
|
|
265
|
+
--color-bg-button-primary-destructive-enable: var(--color-danger-500);
|
|
266
|
+
--color-bg-button-primary-destructive-hover: var(--color-danger-600);
|
|
267
|
+
--color-bg-button-primary-destructive-disable: var(--color-danger-100);
|
|
268
|
+
|
|
269
|
+
--color-bg-button-secondary-enable: var(--color-neutrals-000);
|
|
270
|
+
--color-bg-button-secondary-hover: var(--color-slate-100);
|
|
271
|
+
--color-bg-button-secondary-disable: var(--color-neutrals-000);
|
|
272
|
+
--color-bg-button-secondary-destructive-enable: var(--color-neutrals-000);
|
|
273
|
+
--color-bg-button-secondary-destructive-hover: var(--color-danger-050);
|
|
274
|
+
--color-bg-button-secondary-destructive-disable: var(--color-neutrals-000);
|
|
275
|
+
|
|
276
|
+
--color-bg-button-tertiary-enable: var(--color-slate-100);
|
|
277
|
+
--color-bg-button-tertiary-hover: var(--color-slate-200);
|
|
278
|
+
--color-bg-button-tertiary-disable: var(--color-slate-050);
|
|
279
|
+
--color-bg-button-tertiary-destructive-enable: var(--color-danger-050);
|
|
280
|
+
--color-bg-button-tertiary-destructive-hover: var(--color-danger-100);
|
|
281
|
+
--color-bg-button-tertiary-destructive-disable: var(--color-danger-050);
|
|
282
|
+
|
|
283
|
+
--color-bg-button-ghost-enable: var(--color-neutrals-000);
|
|
284
|
+
--color-bg-button-ghost-hover: var(--color-slate-100);
|
|
285
|
+
--color-bg-button-ghost-disable: var(--color-neutrals-000);
|
|
286
|
+
--color-bg-button-ghost-destructive-enable: var(--color-neutrals-000);
|
|
287
|
+
--color-bg-button-ghost-destructive-hover: var(--color-danger-050);
|
|
288
|
+
--color-bg-button-ghost-destructive-disable: var(--color-neutrals-000);
|
|
289
|
+
|
|
290
|
+
/* Border Tokens */
|
|
291
|
+
--color-border-input-default: var(--color-slate-200);
|
|
292
|
+
--color-border-input-hover: var(--color-slate-400);
|
|
293
|
+
--color-border-input-focus: var(--color-slate-800);
|
|
294
|
+
--color-border-input-disable: var(--color-slate-100);
|
|
295
|
+
--color-border-input-destructive: var(--color-danger-500);
|
|
296
|
+
|
|
297
|
+
--color-outline-input-focus: var(--color-brand-500);
|
|
298
|
+
--color-outline-input-destructive: var(--color-danger-500);
|
|
299
|
+
|
|
300
|
+
--color-border-button-secondary-enable: var(--color-slate-200);
|
|
301
|
+
--color-border-button-secondary-disable: var(--color-slate-100);
|
|
302
|
+
--color-border-button-secondary-destructive-enable: var(--color-danger-200);
|
|
303
|
+
--color-border-button-secondary-destructive-disable: var(--color-danger-100);
|
|
304
|
+
|
|
305
|
+
--color-border-default-base-primary: var(--color-slate-100);
|
|
306
|
+
--color-border-default-base-secondary: var(--color-slate-200);
|
|
307
|
+
--color-border-default-base-tertiary: var(--color-slate-300);
|
|
308
|
+
--color-border-default-base-inverse-secondary: var(--color-slate-700);
|
|
309
|
+
|
|
310
|
+
--color-border-default-neutral-primary: var(--color-neutrals-100);
|
|
311
|
+
--color-border-default-neutral-secondary: var(--color-neutrals-200);
|
|
312
|
+
--color-border-default-neutral-tertiary: var(--color-neutrals-300);
|
|
313
|
+
|
|
314
|
+
--color-border-default-brand-primary: var(--color-brand-600);
|
|
315
|
+
--color-border-default-brand-secondary: var(--color-brand-300);
|
|
316
|
+
--color-border-default-brand-tertiary: var(--color-brand-300);
|
|
317
|
+
|
|
318
|
+
--color-border-default-positive-primary: var(--color-positive-600);
|
|
319
|
+
--color-border-default-positive-secondary: var(--color-positive-600);
|
|
320
|
+
--color-border-default-positive-tertiary: var(--color-positive-500);
|
|
321
|
+
|
|
322
|
+
--color-border-default-danger-primary: var(--color-danger-700);
|
|
323
|
+
--color-border-default-danger-secondary: var(--color-danger-600);
|
|
324
|
+
--color-border-default-danger-tertiary: var(--color-danger-500);
|
|
325
|
+
|
|
326
|
+
--color-border-default-warning-primary: var(--color-warning-600);
|
|
327
|
+
--color-border-default-warning-secondary: var(--color-warning-600);
|
|
328
|
+
--color-border-default-warning-tertiary: var(--color-warning-500);
|
|
329
|
+
|
|
330
|
+
--color-border-default-disable-primary: var(--color-slate-100);
|
|
331
|
+
|
|
332
|
+
/* Text Tokens */
|
|
333
|
+
--color-text-input-normal: var(--color-slate-800);
|
|
334
|
+
--color-text-input-disable: var(--color-slate-300);
|
|
335
|
+
--color-text-input-placeholder: var(--color-slate-500);
|
|
336
|
+
--color-text-input-destructive: var(--color-danger-500);
|
|
337
|
+
|
|
338
|
+
--color-text-button-primary-enable: var(--color-neutrals-000);
|
|
339
|
+
--color-text-button-primary-disable: var(--color-slate-300);
|
|
340
|
+
--color-text-button-primary-destructive-enable: var(--color-neutrals-000);
|
|
341
|
+
--color-text-button-primary-destructive-disable: var(--color-neutrals-000);
|
|
342
|
+
|
|
343
|
+
--color-text-button-secondary-enable: var(--color-slate-800);
|
|
344
|
+
--color-text-button-secondary-disable: var(--color-slate-300);
|
|
345
|
+
--color-text-button-secondary-destructive-enable: var(--color-danger-500);
|
|
346
|
+
--color-text-button-secondary-destructive-disable: var(--color-danger-200);
|
|
347
|
+
|
|
348
|
+
--color-text-button-tertiary-enable: var(--color-slate-800);
|
|
349
|
+
--color-text-button-tertiary-disable: var(--color-slate-300);
|
|
350
|
+
--color-text-button-tertiary-destructive-enable: var(--color-danger-500);
|
|
351
|
+
--color-text-button-tertiary-destructive-disable: var(--color-danger-200);
|
|
352
|
+
|
|
353
|
+
--color-text-button-ghost-enable: var(--color-slate-800);
|
|
354
|
+
--color-text-button-ghost-disable: var(--color-slate-300);
|
|
355
|
+
--color-text-button-ghost-destructive-enable: var(--color-danger-500);
|
|
356
|
+
--color-text-button-ghost-destructive-disable: var(--color-danger-200);
|
|
357
|
+
|
|
358
|
+
--color-text-button-link-enable: var(--color-slate-800);
|
|
359
|
+
--color-text-button-link-disable: var(--color-slate-300);
|
|
360
|
+
--color-text-button-link-destructive-enable: var(--color-danger-500);
|
|
361
|
+
--color-text-button-link-destructive-hover: var(--color-danger-600);
|
|
362
|
+
--color-text-button-link-destructive-disable: var(--color-danger-200);
|
|
363
|
+
|
|
364
|
+
--color-text-default-base-primary: var(--color-slate-900);
|
|
365
|
+
--color-text-default-base-secondary: var(--color-slate-700);
|
|
366
|
+
--color-text-default-base-tertiary: var(--color-slate-500);
|
|
367
|
+
--color-text-default-base-inverse-primary: var(--color-neutrals-000);
|
|
368
|
+
--color-text-default-base-on-base-primary: var(--color-slate-800);
|
|
369
|
+
--color-text-default-base-on-base-secondary: var(--color-slate-700);
|
|
370
|
+
--color-text-default-base-on-base-tertiary: var(--color-slate-800);
|
|
371
|
+
|
|
372
|
+
--color-text-default-neutral-primary: var(--color-neutrals-1000);
|
|
373
|
+
--color-text-default-neutral-secondary: var(--color-neutrals-700);
|
|
374
|
+
--color-text-default-neutral-tertiary: var(--color-neutrals-500);
|
|
375
|
+
--color-text-default-neutral-on-neutral-primary: var(--color-neutrals-800);
|
|
376
|
+
--color-text-default-neutral-on-neutral-secondary: var(--color-neutrals-800);
|
|
377
|
+
--color-text-default-neutral-on-neutral-tertiary: var(--color-neutrals-900);
|
|
378
|
+
|
|
379
|
+
--color-text-default-brand-primary: var(--color-brand-500);
|
|
380
|
+
--color-text-default-brand-secondary: var(--color-brand-700);
|
|
381
|
+
--color-text-default-brand-tertiary: var(--color-brand-800);
|
|
382
|
+
--color-text-default-brand-on-brand-primary: var(--color-brand-900);
|
|
383
|
+
--color-text-default-brand-on-brand-secondary: var(--color-brand-800);
|
|
384
|
+
--color-text-default-brand-on-brand-tertiary: var(--color-brand-700);
|
|
385
|
+
|
|
386
|
+
--color-text-default-positive-primary: var(--color-positive-500);
|
|
387
|
+
--color-text-default-positive-secondary: var(--color-positive-700);
|
|
388
|
+
--color-text-default-positive-tertiary: var(--color-positive-800);
|
|
389
|
+
--color-text-default-positive-on-positive-primary: var(--color-positive-800);
|
|
390
|
+
--color-text-default-positive-on-positive-secondary: var(
|
|
391
|
+
--color-positive-800
|
|
392
|
+
);
|
|
393
|
+
--color-text-default-positive-on-positive-tertiary: var(--color-positive-800);
|
|
394
|
+
|
|
395
|
+
--color-text-default-danger-primary: var(--color-danger-500);
|
|
396
|
+
--color-text-default-danger-secondary: var(--color-danger-600);
|
|
397
|
+
--color-text-default-danger-tertiary: var(--color-danger-800);
|
|
398
|
+
--color-text-default-danger-on-danger-primary: var(--color-neutrals-000);
|
|
399
|
+
--color-text-default-danger-on-danger-secondary: var(--color-neutrals-000);
|
|
400
|
+
--color-text-default-danger-on-danger-tertiary: var(--color-danger-500);
|
|
401
|
+
|
|
402
|
+
--color-text-default-warning-primary: var(--color-warning-500);
|
|
403
|
+
--color-text-default-warning-secondary: var(--color-warning-700);
|
|
404
|
+
--color-text-default-warning-tertiary: var(--color-warning-800);
|
|
405
|
+
--color-text-default-warning-on-warning-primary: var(--color-warning-800);
|
|
406
|
+
--color-text-default-warning-on-warning-secondary: var(--color-warning-800);
|
|
407
|
+
--color-text-default-warning-on-warning-tertiary: var(--color-warning-800);
|
|
408
|
+
|
|
409
|
+
--color-text-default-disable-primary: var(--color-slate-200);
|
|
410
|
+
--color-text-default-disable-on-disable-primary: var(--color-slate-200);
|
|
411
|
+
|
|
412
|
+
/* Icon Tokens (same as text tokens) */
|
|
413
|
+
--color-icon-input-default: var(--color-slate-400);
|
|
414
|
+
--color-icon-input-disable: var(--color-slate-300);
|
|
415
|
+
|
|
416
|
+
--color-icon-button-primary-enable: var(--color-neutrals-000);
|
|
417
|
+
--color-icon-button-primary-disable: var(--color-slate-300);
|
|
418
|
+
--color-icon-button-primary-destructive-enable: var(--color-neutrals-000);
|
|
419
|
+
--color-icon-button-primary-destructive-disable: var(--color-neutrals-000);
|
|
420
|
+
|
|
421
|
+
--color-icon-button-secondary-enable: var(--color-slate-800);
|
|
422
|
+
--color-icon-button-secondary-disable: var(--color-slate-300);
|
|
423
|
+
--color-icon-button-secondary-destructive-enable: var(--color-danger-500);
|
|
424
|
+
--color-icon-button-secondary-destructive-disable: var(--color-danger-200);
|
|
425
|
+
|
|
426
|
+
--color-icon-button-tertiary-enable: var(--color-slate-800);
|
|
427
|
+
--color-icon-button-tertiary-disable: var(--color-slate-300);
|
|
428
|
+
--color-icon-button-tertiary-destructive-enable: var(--color-danger-500);
|
|
429
|
+
--color-icon-button-tertiary-destructive-disable: var(--color-danger-200);
|
|
430
|
+
|
|
431
|
+
--color-icon-button-ghost-enable: var(--color-slate-800);
|
|
432
|
+
--color-icon-button-ghost-disable: var(--color-slate-300);
|
|
433
|
+
--color-icon-button-ghost-destructive-enable: var(--color-danger-500);
|
|
434
|
+
--color-icon-button-ghost-destructive-disable: var(--color-danger-200);
|
|
435
|
+
|
|
436
|
+
--color-icon-button-link-enable: var(--color-slate-800);
|
|
437
|
+
--color-icon-button-link-disable: var(--color-slate-300);
|
|
438
|
+
--color-icon-button-link-destructive-enable: var(--color-danger-500);
|
|
439
|
+
--color-icon-button-link-destructive-hover: var(--color-danger-600);
|
|
440
|
+
--color-icon-button-link-destructive-disable: var(--color-danger-200);
|
|
441
|
+
|
|
442
|
+
--color-icon-default-base-primary: var(--color-slate-900);
|
|
443
|
+
--color-icon-default-base-secondary: var(--color-slate-700);
|
|
444
|
+
--color-icon-default-base-tertiary: var(--color-slate-500);
|
|
445
|
+
--color-icon-default-base-on-base-primary: var(--color-slate-800);
|
|
446
|
+
--color-icon-default-base-on-base-secondary: var(--color-slate-700);
|
|
447
|
+
--color-icon-default-base-on-base-tertiary: var(--color-slate-800);
|
|
448
|
+
|
|
449
|
+
--color-icon-default-neutral-primary: var(--color-neutrals-1000);
|
|
450
|
+
--color-icon-default-neutral-secondary: var(--color-neutrals-700);
|
|
451
|
+
--color-icon-default-neutral-tertiary: var(--color-neutrals-500);
|
|
452
|
+
--color-icon-default-neutral-on-neutral-primary: var(--color-neutrals-000);
|
|
453
|
+
--color-icon-default-neutral-on-neutral-secondary: var(--color-neutrals-700);
|
|
454
|
+
--color-icon-default-neutral-on-neutral-tertiary: var(--color-neutrals-600);
|
|
455
|
+
|
|
456
|
+
--color-icon-default-brand-primary: var(--color-brand-500);
|
|
457
|
+
--color-icon-default-brand-secondary: var(--color-brand-700);
|
|
458
|
+
--color-icon-default-brand-tertiary: var(--color-brand-800);
|
|
459
|
+
--color-icon-default-brand-on-brand-primary: var(--color-brand-900);
|
|
460
|
+
--color-icon-default-brand-on-brand-secondary: var(--color-brand-800);
|
|
461
|
+
--color-icon-default-brand-on-brand-tertiary: var(--color-brand-700);
|
|
462
|
+
|
|
463
|
+
--color-icon-default-positive-primary: var(--color-positive-500);
|
|
464
|
+
--color-icon-default-positive-secondary: var(--color-positive-700);
|
|
465
|
+
--color-icon-default-positive-tertiary: var(--color-positive-800);
|
|
466
|
+
--color-icon-default-positive-on-positive-primary: var(--color-positive-800);
|
|
467
|
+
--color-icon-default-positive-on-positive-secondary: var(
|
|
468
|
+
--color-positive-800
|
|
469
|
+
);
|
|
470
|
+
--color-icon-default-positive-on-positive-tertiary: var(--color-positive-800);
|
|
471
|
+
|
|
472
|
+
--color-icon-default-danger-primary: var(--color-danger-500);
|
|
473
|
+
--color-icon-default-danger-secondary: var(--color-danger-600);
|
|
474
|
+
--color-icon-default-danger-tertiary: var(--color-danger-800);
|
|
475
|
+
--color-icon-default-danger-on-danger-primary: var(--color-neutrals-000);
|
|
476
|
+
--color-icon-default-danger-on-danger-secondary: var(--color-neutrals-000);
|
|
477
|
+
--color-icon-default-danger-on-danger-tertiary: var(--color-danger-500);
|
|
478
|
+
|
|
479
|
+
--color-icon-default-warning-primary: var(--color-warning-500);
|
|
480
|
+
--color-icon-default-warning-secondary: var(--color-warning-700);
|
|
481
|
+
--color-icon-default-warning-tertiary: var(--color-warning-800);
|
|
482
|
+
--color-icon-default-warning-on-warning-primary: var(--color-warning-800);
|
|
483
|
+
--color-icon-default-warning-on-warning-secondary: var(--color-warning-800);
|
|
484
|
+
--color-icon-default-warning-on-warning-tertiary: var(--color-warning-800);
|
|
485
|
+
|
|
486
|
+
--color-icon-default-info-primary: var(--color-blue-500);
|
|
487
|
+
|
|
488
|
+
--color-icon-default-disable-primary: var(--color-slate-200);
|
|
489
|
+
--color-icon-default-disable-on-disable-primary: var(--color-slate-200);
|
|
490
|
+
|
|
491
|
+
/* ========================================
|
|
492
|
+
* ALERT
|
|
493
|
+
* ======================================== */
|
|
494
|
+
|
|
495
|
+
/* Alert Backgrounds - Primary */
|
|
496
|
+
--color-bg-alert-primary-neutral: var(--color-slate-050);
|
|
497
|
+
--color-bg-alert-primary-success: var(--color-positive-050);
|
|
498
|
+
--color-bg-alert-primary-danger: var(--color-danger-050);
|
|
499
|
+
--color-bg-alert-primary-warning: var(--color-warning-050);
|
|
500
|
+
--color-bg-alert-primary-info: var(--color-blue-050);
|
|
501
|
+
--color-bg-alert-primary-creative: var(--color-purple-050);
|
|
502
|
+
--color-bg-alert-primary-dynamic: var(--color-orange-050);
|
|
503
|
+
--color-bg-alert-primary-playful: var(--color-pink-050);
|
|
504
|
+
|
|
505
|
+
/* Alert Text - Primary */
|
|
506
|
+
--color-text-alert-primary-neutral: var(--color-slate-800);
|
|
507
|
+
--color-text-alert-primary-success: var(--color-positive-800);
|
|
508
|
+
--color-text-alert-primary-danger: var(--color-danger-600);
|
|
509
|
+
--color-text-alert-primary-warning: var(--color-warning-800);
|
|
510
|
+
--color-text-alert-primary-info: var(--color-blue-800);
|
|
511
|
+
--color-text-alert-primary-creative: var(--color-purple-800);
|
|
512
|
+
--color-text-alert-primary-dynamic: var(--color-orange-800);
|
|
513
|
+
--color-text-alert-primary-playful: var(--color-pink-800);
|
|
514
|
+
|
|
515
|
+
/* Alert Text - Ghost */
|
|
516
|
+
--color-text-alert-ghost-neutral: var(--color-slate-800);
|
|
517
|
+
--color-text-alert-ghost-success: var(--color-positive-800);
|
|
518
|
+
--color-text-alert-ghost-danger: var(--color-danger-500);
|
|
519
|
+
--color-text-alert-ghost-warning: var(--color-warning-700);
|
|
520
|
+
--color-text-alert-ghost-info: var(--color-blue-700);
|
|
521
|
+
--color-text-alert-ghost-creative: var(--color-purple-700);
|
|
522
|
+
--color-text-alert-ghost-dynamic: var(--color-orange-700);
|
|
523
|
+
--color-text-alert-ghost-playful: var(--color-pink-600);
|
|
524
|
+
|
|
525
|
+
/* Alert Icon - Primary */
|
|
526
|
+
--color-icon-alert-primary-neutral: var(--color-slate-800);
|
|
527
|
+
--color-icon-alert-primary-success: var(--color-positive-800);
|
|
528
|
+
--color-icon-alert-primary-danger: var(--color-danger-600);
|
|
529
|
+
--color-icon-alert-primary-warning: var(--color-warning-800);
|
|
530
|
+
--color-icon-alert-primary-info: var(--color-blue-800);
|
|
531
|
+
--color-icon-alert-primary-creative: var(--color-purple-800);
|
|
532
|
+
--color-icon-alert-primary-dynamic: var(--color-orange-800);
|
|
533
|
+
--color-icon-alert-primary-playful: var(--color-pink-800);
|
|
534
|
+
|
|
535
|
+
/* Alert Icon - Ghost */
|
|
536
|
+
--color-icon-alert-ghost-neutral: var(--color-slate-800);
|
|
537
|
+
--color-icon-alert-ghost-success: var(--color-positive-800);
|
|
538
|
+
--color-icon-alert-ghost-danger: var(--color-danger-500);
|
|
539
|
+
--color-icon-alert-ghost-warning: var(--color-warning-700);
|
|
540
|
+
--color-icon-alert-ghost-info: var(--color-blue-700);
|
|
541
|
+
--color-icon-alert-ghost-creative: var(--color-purple-700);
|
|
542
|
+
--color-icon-alert-ghost-dynamic: var(--color-orange-700);
|
|
543
|
+
--color-icon-alert-ghost-playful: var(--color-pink-600);
|
|
544
|
+
|
|
545
|
+
/* Focus Ring */
|
|
546
|
+
--color-focus-ring-button-primary: var(--color-slate-800);
|
|
547
|
+
--color-focus-ring-button-destructive: var(--color-danger-500);
|
|
548
|
+
|
|
549
|
+
/* ========================================
|
|
550
|
+
* SPACING
|
|
551
|
+
* ======================================== */
|
|
552
|
+
|
|
553
|
+
/* Use tailwind defaults */
|
|
554
|
+
|
|
555
|
+
/* ========================================
|
|
556
|
+
* BORDER RADIUS
|
|
557
|
+
* ======================================== */
|
|
558
|
+
|
|
559
|
+
--radius-xs: 0.125rem;
|
|
560
|
+
--radius-sm: 0.25rem;
|
|
561
|
+
--radius-md: 0.5rem;
|
|
562
|
+
--radius-lg: 0.75rem;
|
|
563
|
+
--radius-xl: 1rem;
|
|
564
|
+
--radius-2xl: 1.5rem;
|
|
565
|
+
--radius-full: 9999px;
|
|
566
|
+
|
|
567
|
+
/* ========================================
|
|
568
|
+
* SHADOWS
|
|
569
|
+
* ======================================== */
|
|
570
|
+
|
|
571
|
+
--shadow-1: 0 0.0625rem 0.125rem 0 var(--color-overlay-dark-050);
|
|
572
|
+
--shadow-2:
|
|
573
|
+
0 0.0625rem 0.125rem 0 var(--color-overlay-dark-050),
|
|
574
|
+
0 0.0625rem 0.125rem 0 var(--color-overlay-dark-050);
|
|
575
|
+
--shadow-3:
|
|
576
|
+
0 0.25rem 0.375rem -0.0625rem var(--color-overlay-dark-100),
|
|
577
|
+
0 0.125rem 0.25rem -0.0625rem var(--color-overlay-dark-050);
|
|
578
|
+
--shadow-4:
|
|
579
|
+
0 0.625rem 0.9375rem -0.1875rem var(--color-overlay-dark-100),
|
|
580
|
+
0 0.25rem 0.375rem -0.125rem var(--color-overlay-dark-050);
|
|
581
|
+
--shadow-5:
|
|
582
|
+
0 1.25rem 1.5625rem -0.3125rem var(--color-overlay-dark-100),
|
|
583
|
+
0 0.625rem 0.625rem -0.3125rem var(--color-overlay-dark-050);
|
|
584
|
+
--shadow-6: 0 1.5625rem 3.125rem -0.75rem var(--color-overlay-dark-200);
|
|
585
|
+
|
|
586
|
+
/* Semantic Shadows */
|
|
587
|
+
--shadow-xs: var(--shadow-1);
|
|
588
|
+
--shadow-sm: var(--shadow-2);
|
|
589
|
+
--shadow-md: var(--shadow-3);
|
|
590
|
+
--shadow-lg: var(--shadow-4);
|
|
591
|
+
--shadow-xl: var(--shadow-5);
|
|
592
|
+
--shadow-2xl: var(--shadow-6);
|
|
593
|
+
|
|
594
|
+
/* ========================================
|
|
595
|
+
* EASINGS / TRANSITIONS
|
|
596
|
+
* ======================================== */
|
|
597
|
+
|
|
598
|
+
--ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
599
|
+
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
|
|
600
|
+
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
601
|
+
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
602
|
+
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
603
|
+
|
|
604
|
+
/* ========================================
|
|
605
|
+
* Z-INDEX
|
|
606
|
+
* ======================================== */
|
|
607
|
+
|
|
608
|
+
--z-index-modal: 1005;
|
|
609
|
+
|
|
610
|
+
/* ========================================
|
|
611
|
+
* BREAKPOINTS
|
|
612
|
+
* ======================================== */
|
|
613
|
+
|
|
614
|
+
--breakpoint-sm: 30rem;
|
|
615
|
+
--breakpoint-md: 48rem;
|
|
616
|
+
--breakpoint-lg: 64rem;
|
|
617
|
+
--breakpoint-xl: 80rem;
|
|
618
|
+
--breakpoint-2xl: 85.375rem;
|
|
619
|
+
--breakpoint-3xl: 100rem;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* ========================================
|
|
623
|
+
* BASE LAYER - Global Styles
|
|
624
|
+
* ======================================== */
|
|
625
|
+
|
|
626
|
+
@layer base {
|
|
627
|
+
:root {
|
|
628
|
+
--text-underline-offset: 0.3em;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
@keyframes dotFade {
|
|
632
|
+
0% {
|
|
633
|
+
opacity: 0;
|
|
634
|
+
}
|
|
635
|
+
50% {
|
|
636
|
+
opacity: 1;
|
|
637
|
+
}
|
|
638
|
+
100% {
|
|
639
|
+
opacity: 0;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
@keyframes toast-slide-in {
|
|
644
|
+
from {
|
|
645
|
+
opacity: 0;
|
|
646
|
+
transform: translateY(1rem);
|
|
647
|
+
}
|
|
648
|
+
to {
|
|
649
|
+
opacity: 1;
|
|
650
|
+
transform: translateY(0);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
@keyframes toast-slide-out {
|
|
655
|
+
from {
|
|
656
|
+
opacity: 1;
|
|
657
|
+
transform: translateY(0);
|
|
658
|
+
}
|
|
659
|
+
to {
|
|
660
|
+
opacity: 0;
|
|
661
|
+
transform: translateY(1rem);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
html {
|
|
666
|
+
/* body.md textStyle from Panda → text-base */
|
|
667
|
+
font-size: var(--text-base);
|
|
668
|
+
line-height: var(--text-base--line-height);
|
|
669
|
+
font-family: var(--font-family-body);
|
|
670
|
+
font-weight: 400;
|
|
671
|
+
color: var(--color-text-default-base-primary);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
a {
|
|
675
|
+
color: var(--color-text-default-base-primary);
|
|
676
|
+
fill: var(--color-text-default-base-primary);
|
|
677
|
+
text-decoration: underline;
|
|
678
|
+
text-underline-offset: var(--text-underline-offset);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
a:hover,
|
|
682
|
+
a:focus {
|
|
683
|
+
color: var(--color-text-default-base-primary);
|
|
684
|
+
fill: var(--color-text-default-base-primary);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
a:active {
|
|
688
|
+
color: var(--color-text-default-base-primary);
|
|
689
|
+
fill: var(--color-text-default-base-primary);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
b,
|
|
693
|
+
strong {
|
|
694
|
+
font-weight: 600;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
em,
|
|
698
|
+
i {
|
|
699
|
+
font-style: italic;
|
|
700
|
+
}
|
|
701
|
+
}
|