aural-ui 3.0.6 → 4.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/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/clamp-lines/ClampLines.stories.tsx +25 -0
- package/dist/components/clamp-lines/index.tsx +6 -1
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/input/index.tsx +2 -0
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof PaintRollIcon> = {
|
|
|
11
11
|
backgrounds: {
|
|
12
12
|
default: "dark",
|
|
13
13
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
14
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
15
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
16
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
19
|
docs: {
|
|
@@ -40,59 +40,59 @@ const meta: Meta<typeof PaintRollIcon> = {
|
|
|
40
40
|
background: transparent ;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) ;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) ;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent ;
|
|
50
50
|
border: none ;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) ;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) ;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) ;
|
|
60
|
+
color: var(--color-fm-secondary-500) ;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) ;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) ;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) ;
|
|
73
|
+
color: var(--color-fm-icon-active) ;
|
|
74
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) ;
|
|
75
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) ;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
79
|
}
|
|
80
80
|
`}
|
|
81
81
|
</style>
|
|
82
82
|
|
|
83
|
-
<div className="
|
|
83
|
+
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
84
84
|
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b
|
|
86
|
-
<div className="absolute inset-0 bg-
|
|
85
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
86
|
+
<div className="from-fm-icon-info/10 to-fm-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
88
|
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
90
|
-
<PaintRollIcon className="h-12 w-12
|
|
89
|
+
<div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-secondary-500/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
+
<PaintRollIcon className="text-fm-icon-info h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
93
|
PaintRollIcon
|
|
94
94
|
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
95
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
96
|
A versatile paint roll icon perfect for design tools, theme
|
|
97
97
|
customization, styling interfaces, and visual editing
|
|
98
98
|
applications. Built with accessibility in mind using Radix
|
|
@@ -102,28 +102,28 @@ const meta: Meta<typeof PaintRollIcon> = {
|
|
|
102
102
|
{/* Stats */}
|
|
103
103
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
104
|
<div className="text-center">
|
|
105
|
-
<div className="text-3xl font-bold
|
|
105
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
106
106
|
Accessible
|
|
107
107
|
</div>
|
|
108
|
-
<div className="text-
|
|
108
|
+
<div className="text-fm-tertiary text-sm">
|
|
109
109
|
Screen reader friendly
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
|
-
<div className="h-8 w-px
|
|
112
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
113
113
|
<div className="text-center">
|
|
114
|
-
<div className="text-3xl font-bold
|
|
114
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
115
115
|
Scalable
|
|
116
116
|
</div>
|
|
117
|
-
<div className="text-
|
|
117
|
+
<div className="text-fm-tertiary text-sm">
|
|
118
118
|
Any size needed
|
|
119
119
|
</div>
|
|
120
120
|
</div>
|
|
121
|
-
<div className="h-8 w-px
|
|
121
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
122
122
|
<div className="text-center">
|
|
123
|
-
<div className="text-3xl font-bold
|
|
123
|
+
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
124
124
|
Flexible
|
|
125
125
|
</div>
|
|
126
|
-
<div className="text-
|
|
126
|
+
<div className="text-fm-tertiary text-sm">
|
|
127
127
|
Customizable styling
|
|
128
128
|
</div>
|
|
129
129
|
</div>
|
|
@@ -136,16 +136,16 @@ const meta: Meta<typeof PaintRollIcon> = {
|
|
|
136
136
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
137
|
{/* Quick Usage */}
|
|
138
138
|
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-center text-3xl font-bold
|
|
139
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
140
140
|
Quick Start
|
|
141
141
|
</h2>
|
|
142
142
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
143
|
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-xl font-semibold
|
|
144
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
145
145
|
Basic Usage
|
|
146
146
|
</h3>
|
|
147
|
-
<div className="rounded-lg
|
|
148
|
-
<pre className="overflow-x-auto text-sm
|
|
147
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
148
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
149
149
|
{`import { PaintRollIcon } from "@icons/paint-roll-icon"
|
|
150
150
|
|
|
151
151
|
function MyComponent() {
|
|
@@ -161,13 +161,15 @@ function MyComponent() {
|
|
|
161
161
|
</div>
|
|
162
162
|
|
|
163
163
|
<div className="!space-y-4">
|
|
164
|
-
<h3 className="text-xl font-semibold
|
|
164
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
165
165
|
Live Preview
|
|
166
166
|
</h3>
|
|
167
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
168
|
-
<div className="flex items-center gap-3 rounded-lg border
|
|
169
|
-
<PaintRollIcon className="h-5 w-5
|
|
170
|
-
<span className="text-
|
|
167
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
168
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 flex items-center gap-3 rounded-lg border px-4 py-2">
|
|
169
|
+
<PaintRollIcon className="text-fm-icon-info h-5 w-5" />
|
|
170
|
+
<span className="text-fm-icon-active">
|
|
171
|
+
Customize Theme
|
|
172
|
+
</span>
|
|
171
173
|
</div>
|
|
172
174
|
</div>
|
|
173
175
|
</div>
|
|
@@ -176,108 +178,116 @@ function MyComponent() {
|
|
|
176
178
|
|
|
177
179
|
{/* Props Documentation */}
|
|
178
180
|
<div className="!space-y-8">
|
|
179
|
-
<h2 className="text-center text-3xl font-bold
|
|
181
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
180
182
|
Props & Configuration
|
|
181
183
|
</h2>
|
|
182
184
|
|
|
183
|
-
<div className="overflow-hidden rounded-lg border
|
|
184
|
-
<div className="bg-
|
|
185
|
-
<h3 className="text-xl font-semibold
|
|
185
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
186
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
187
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
188
|
+
Props
|
|
189
|
+
</h3>
|
|
186
190
|
</div>
|
|
187
191
|
<table className="!my-0 w-full">
|
|
188
|
-
<thead className="bg-
|
|
189
|
-
<tr className="border-
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
192
|
+
<thead className="bg-fm-surface-secondary">
|
|
193
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
194
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
191
195
|
Prop
|
|
192
196
|
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
197
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
194
198
|
Type
|
|
195
199
|
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
200
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
197
201
|
Default
|
|
198
202
|
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
203
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
200
204
|
Description
|
|
201
205
|
</th>
|
|
202
206
|
</tr>
|
|
203
207
|
</thead>
|
|
204
208
|
<tbody>
|
|
205
209
|
{" "}
|
|
206
|
-
<tr className="
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
210
|
+
<tr className="bg-fm-surface-secondary!">
|
|
211
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
208
212
|
withAccessibility
|
|
209
213
|
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm
|
|
214
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
211
215
|
boolean
|
|
212
216
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm
|
|
217
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
214
218
|
true
|
|
215
219
|
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm
|
|
220
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
217
221
|
Whether to wrap the icon with accessibility feature
|
|
218
222
|
</td>
|
|
219
223
|
</tr>
|
|
220
|
-
<tr className="border-
|
|
221
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
224
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
225
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
222
226
|
height
|
|
223
227
|
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm
|
|
228
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
225
229
|
number | string
|
|
226
230
|
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm
|
|
228
|
-
|
|
231
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
232
|
+
18
|
|
233
|
+
</td>
|
|
234
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
229
235
|
Height of the icon in pixels
|
|
230
236
|
</td>
|
|
231
237
|
</tr>
|
|
232
|
-
<tr className="border-
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
238
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
239
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
234
240
|
stroke
|
|
235
241
|
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm
|
|
242
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
237
243
|
string
|
|
238
244
|
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm
|
|
245
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
240
246
|
currentColor
|
|
241
247
|
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm
|
|
248
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
243
249
|
Stroke color of the icon
|
|
244
250
|
</td>
|
|
245
251
|
</tr>
|
|
246
|
-
<tr className="border-
|
|
247
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
252
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
253
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
248
254
|
strokeWidth
|
|
249
255
|
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm
|
|
256
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
251
257
|
number | string
|
|
252
258
|
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm
|
|
259
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
254
260
|
1.5
|
|
255
261
|
</td>
|
|
256
|
-
<td className="px-6 py-4 text-sm
|
|
262
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
257
263
|
Stroke width of the icon
|
|
258
264
|
</td>
|
|
259
265
|
</tr>
|
|
260
|
-
<tr className="border-
|
|
261
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
266
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
267
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
262
268
|
className
|
|
263
269
|
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm
|
|
270
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
265
271
|
string
|
|
266
272
|
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm
|
|
268
|
-
|
|
273
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
274
|
+
-
|
|
275
|
+
</td>
|
|
276
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
277
|
CSS classes for styling
|
|
270
278
|
</td>
|
|
271
279
|
</tr>
|
|
272
|
-
<tr className="
|
|
273
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
280
|
+
<tr className="bg-fm-surface-secondary!">
|
|
281
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
274
282
|
...svgProps
|
|
275
283
|
</td>
|
|
276
|
-
<td className="px-6 py-4 text-sm
|
|
284
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
277
285
|
SVGProps
|
|
278
286
|
</td>
|
|
279
|
-
<td className="px-6 py-4 text-sm
|
|
280
|
-
|
|
287
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
288
|
+
-
|
|
289
|
+
</td>
|
|
290
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
281
291
|
All standard SVG element props
|
|
282
292
|
</td>
|
|
283
293
|
</tr>
|
|
@@ -288,50 +298,62 @@ function MyComponent() {
|
|
|
288
298
|
|
|
289
299
|
{/* Size Variations */}
|
|
290
300
|
<div className="!space-y-8">
|
|
291
|
-
<h2 className="text-center text-3xl font-bold
|
|
301
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
292
302
|
Size Variations
|
|
293
303
|
</h2>
|
|
294
|
-
<div className="rounded-lg border
|
|
304
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
295
305
|
<div className="!space-y-6">
|
|
296
306
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
297
307
|
<div className="!space-y-4">
|
|
298
|
-
<h3 className="text-lg font-semibold
|
|
308
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
299
309
|
Standard Sizes
|
|
300
310
|
</h3>
|
|
301
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
311
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
302
312
|
<div className="text-center">
|
|
303
|
-
<PaintRollIcon className="!mx-auto mb-2 h-3 w-3
|
|
304
|
-
<span className="text-
|
|
313
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
314
|
+
<span className="text-fm-tertiary text-xs">
|
|
315
|
+
12px
|
|
316
|
+
</span>
|
|
305
317
|
</div>
|
|
306
318
|
<div className="text-center">
|
|
307
|
-
<PaintRollIcon className="!mx-auto mb-2 h-4 w-4
|
|
308
|
-
<span className="text-
|
|
319
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
320
|
+
<span className="text-fm-tertiary text-xs">
|
|
321
|
+
16px
|
|
322
|
+
</span>
|
|
309
323
|
</div>
|
|
310
324
|
<div className="text-center">
|
|
311
|
-
<PaintRollIcon className="!mx-auto mb-2 h-5 w-5
|
|
312
|
-
<span className="text-
|
|
325
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
326
|
+
<span className="text-fm-tertiary text-xs">
|
|
327
|
+
20px
|
|
328
|
+
</span>
|
|
313
329
|
</div>
|
|
314
330
|
<div className="text-center">
|
|
315
|
-
<PaintRollIcon className="!mx-auto mb-2 h-6 w-6
|
|
316
|
-
<span className="text-
|
|
331
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
332
|
+
<span className="text-fm-tertiary text-xs">
|
|
333
|
+
24px
|
|
334
|
+
</span>
|
|
317
335
|
</div>
|
|
318
336
|
<div className="text-center">
|
|
319
|
-
<PaintRollIcon className="!mx-auto mb-2 h-8 w-8
|
|
320
|
-
<span className="text-
|
|
337
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
338
|
+
<span className="text-fm-tertiary text-xs">
|
|
339
|
+
32px
|
|
340
|
+
</span>
|
|
321
341
|
</div>
|
|
322
342
|
<div className="text-center">
|
|
323
|
-
<PaintRollIcon className="!mx-auto mb-2 h-12 w-12
|
|
324
|
-
<span className="text-
|
|
343
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
344
|
+
<span className="text-fm-tertiary text-xs">
|
|
345
|
+
48px
|
|
346
|
+
</span>
|
|
325
347
|
</div>
|
|
326
348
|
</div>
|
|
327
349
|
</div>
|
|
328
350
|
|
|
329
351
|
<div className="!space-y-4">
|
|
330
|
-
<h3 className="text-lg font-semibold
|
|
352
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
331
353
|
Code Example
|
|
332
354
|
</h3>
|
|
333
|
-
<div className="rounded-lg
|
|
334
|
-
<pre className="overflow-x-auto text-sm
|
|
355
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
356
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
335
357
|
{`// Small (16px)
|
|
336
358
|
<PaintRollIcon className="h-4 w-4" />
|
|
337
359
|
|
|
@@ -353,56 +375,56 @@ function MyComponent() {
|
|
|
353
375
|
|
|
354
376
|
{/* Color Variations */}
|
|
355
377
|
<div className="!space-y-8">
|
|
356
|
-
<h2 className="text-center text-3xl font-bold
|
|
378
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
357
379
|
Color Variations
|
|
358
380
|
</h2>
|
|
359
381
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
360
382
|
<div className="!space-y-4">
|
|
361
|
-
<h3 className="text-lg font-semibold
|
|
383
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
362
384
|
Design Tool Colors
|
|
363
385
|
</h3>
|
|
364
|
-
<div className="!space-y-4 rounded-lg border
|
|
386
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
365
387
|
<div className="flex items-center gap-4">
|
|
366
|
-
<PaintRollIcon className="h-6 w-6
|
|
388
|
+
<PaintRollIcon className="text-fm-icon-info h-6 w-6" />
|
|
367
389
|
<div>
|
|
368
|
-
<div className="text-sm font-medium
|
|
390
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
369
391
|
Primary Tool
|
|
370
392
|
</div>
|
|
371
|
-
<div className="text-
|
|
372
|
-
text-
|
|
393
|
+
<div className="text-fm-tertiary text-xs">
|
|
394
|
+
text-fm-icon-info
|
|
373
395
|
</div>
|
|
374
396
|
</div>
|
|
375
397
|
</div>
|
|
376
398
|
<div className="flex items-center gap-4">
|
|
377
|
-
<PaintRollIcon className="h-6 w-6
|
|
399
|
+
<PaintRollIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
378
400
|
<div>
|
|
379
|
-
<div className="text-sm font-medium
|
|
401
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
380
402
|
Creative
|
|
381
403
|
</div>
|
|
382
|
-
<div className="text-
|
|
383
|
-
text-
|
|
404
|
+
<div className="text-fm-tertiary text-xs">
|
|
405
|
+
text-fm-secondary-600
|
|
384
406
|
</div>
|
|
385
407
|
</div>
|
|
386
408
|
</div>
|
|
387
409
|
<div className="flex items-center gap-4">
|
|
388
|
-
<PaintRollIcon className="h-6 w-6
|
|
410
|
+
<PaintRollIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
389
411
|
<div>
|
|
390
|
-
<div className="text-sm font-medium
|
|
412
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
391
413
|
Artistic
|
|
392
414
|
</div>
|
|
393
|
-
<div className="text-
|
|
394
|
-
text-
|
|
415
|
+
<div className="text-fm-tertiary text-xs">
|
|
416
|
+
text-fm-secondary-600
|
|
395
417
|
</div>
|
|
396
418
|
</div>
|
|
397
419
|
</div>
|
|
398
420
|
<div className="flex items-center gap-4">
|
|
399
|
-
<PaintRollIcon className="h-6 w-6
|
|
421
|
+
<PaintRollIcon className="text-fm-secondary-600 h-6 w-6" />
|
|
400
422
|
<div>
|
|
401
|
-
<div className="text-sm font-medium
|
|
423
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
402
424
|
Accent
|
|
403
425
|
</div>
|
|
404
|
-
<div className="text-
|
|
405
|
-
text-
|
|
426
|
+
<div className="text-fm-tertiary text-xs">
|
|
427
|
+
text-fm-secondary-600
|
|
406
428
|
</div>
|
|
407
429
|
</div>
|
|
408
430
|
</div>
|
|
@@ -410,11 +432,11 @@ function MyComponent() {
|
|
|
410
432
|
</div>
|
|
411
433
|
|
|
412
434
|
<div className="!space-y-4">
|
|
413
|
-
<h3 className="text-lg font-semibold
|
|
435
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
414
436
|
Custom Colors
|
|
415
437
|
</h3>
|
|
416
|
-
<div className="rounded-lg
|
|
417
|
-
<pre className="overflow-x-auto text-sm
|
|
438
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
439
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
418
440
|
{`// Using Tailwind classes
|
|
419
441
|
<PaintRollIcon className="h-6 w-6 text-indigo-400" />
|
|
420
442
|
<PaintRollIcon className="h-6 w-6 text-violet-500" />
|
|
@@ -439,37 +461,37 @@ function MyComponent() {
|
|
|
439
461
|
|
|
440
462
|
{/* Usage Examples */}
|
|
441
463
|
<div className="!space-y-8">
|
|
442
|
-
<h2 className="text-center text-3xl font-bold
|
|
464
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
443
465
|
Usage Examples
|
|
444
466
|
</h2>
|
|
445
467
|
|
|
446
468
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
447
469
|
{/* Theme Customizer */}
|
|
448
470
|
<div className="!space-y-4">
|
|
449
|
-
<h3 className="text-lg font-semibold
|
|
471
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
450
472
|
Theme Customizer
|
|
451
473
|
</h3>
|
|
452
474
|
<div className="!space-y-4">
|
|
453
|
-
<div className="rounded-lg border
|
|
475
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
454
476
|
<div className="!space-y-3">
|
|
455
477
|
<div className="flex items-center justify-between">
|
|
456
|
-
<h4 className="font-medium
|
|
478
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
457
479
|
Appearance
|
|
458
480
|
</h4>
|
|
459
|
-
<button className="flex items-center gap-2 rounded border
|
|
481
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded border px-3 py-1.5 transition-colors">
|
|
460
482
|
<PaintRollIcon className="h-4 w-4" />
|
|
461
483
|
<span className="text-sm">Customize</span>
|
|
462
484
|
</button>
|
|
463
485
|
</div>
|
|
464
486
|
<div className="grid grid-cols-3 gap-2">
|
|
465
|
-
<div className="h-8 rounded
|
|
466
|
-
<div className="
|
|
467
|
-
<div className="
|
|
487
|
+
<div className="bg-fm-icon-info/20 h-8 rounded"></div>
|
|
488
|
+
<div className="bg-fm-secondary-500/20 h-8 rounded"></div>
|
|
489
|
+
<div className="bg-fm-secondary-500/20 h-8 rounded"></div>
|
|
468
490
|
</div>
|
|
469
491
|
</div>
|
|
470
492
|
</div>
|
|
471
|
-
<div className="rounded-lg
|
|
472
|
-
<pre className="overflow-x-auto text-sm
|
|
493
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
494
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
473
495
|
{`// Theme customizer button
|
|
474
496
|
<button className="flex items-center gap-2 bg-indigo-500/20 border border-indigo-500/30 px-3 py-1.5 rounded">
|
|
475
497
|
<PaintRollIcon className="h-4 w-4" />
|
|
@@ -482,28 +504,28 @@ function MyComponent() {
|
|
|
482
504
|
|
|
483
505
|
{/* Design Tool Toolbar */}
|
|
484
506
|
<div className="!space-y-4">
|
|
485
|
-
<h3 className="text-lg font-semibold
|
|
507
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
486
508
|
Design Tool Toolbar
|
|
487
509
|
</h3>
|
|
488
510
|
<div className="!space-y-4">
|
|
489
|
-
<div className="rounded-lg border
|
|
511
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
490
512
|
<div className="flex items-center gap-1">
|
|
491
|
-
<button className="
|
|
513
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
|
|
492
514
|
<div className="h-5 w-5 rounded-sm border border-current"></div>
|
|
493
515
|
</button>
|
|
494
|
-
<button className="
|
|
516
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
|
|
495
517
|
<div className="h-5 w-5 rounded-full border border-current"></div>
|
|
496
518
|
</button>
|
|
497
|
-
<button className="
|
|
519
|
+
<button className="bg-fm-icon-info/20 text-fm-icon-info rounded p-2">
|
|
498
520
|
<PaintRollIcon className="h-5 w-5" />
|
|
499
521
|
</button>
|
|
500
|
-
<button className="
|
|
522
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
|
|
501
523
|
<div className="h-5 w-5 border-l-2 border-current"></div>
|
|
502
524
|
</button>
|
|
503
525
|
</div>
|
|
504
526
|
</div>
|
|
505
|
-
<div className="rounded-lg
|
|
506
|
-
<pre className="overflow-x-auto text-sm
|
|
527
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
528
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
507
529
|
{`// Design tool toolbar
|
|
508
530
|
<div className="flex items-center gap-1">
|
|
509
531
|
<button className="p-2 rounded text-white/60 hover:bg-white/10">
|
|
@@ -523,36 +545,36 @@ function MyComponent() {
|
|
|
523
545
|
|
|
524
546
|
{/* Style Panel */}
|
|
525
547
|
<div className="!space-y-4">
|
|
526
|
-
<h3 className="text-lg font-semibold
|
|
548
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
527
549
|
Style Panel
|
|
528
550
|
</h3>
|
|
529
551
|
<div className="!space-y-4">
|
|
530
|
-
<div className="rounded-lg border
|
|
552
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
531
553
|
<div className="!space-y-3">
|
|
532
554
|
<div className="flex items-center gap-2">
|
|
533
|
-
<PaintRollIcon className="h-4 w-4
|
|
534
|
-
<span className="text-sm font-medium
|
|
555
|
+
<PaintRollIcon className="text-fm-icon-info h-4 w-4" />
|
|
556
|
+
<span className="text-fm-icon-active text-sm font-medium">
|
|
535
557
|
Styling
|
|
536
558
|
</span>
|
|
537
559
|
</div>
|
|
538
560
|
<div className="!space-y-2">
|
|
539
561
|
<div className="flex items-center justify-between">
|
|
540
|
-
<span className="text-
|
|
562
|
+
<span className="text-fm-secondary text-sm">
|
|
541
563
|
Background
|
|
542
564
|
</span>
|
|
543
|
-
<div className="h-6 w-6 rounded border
|
|
565
|
+
<div className="border-fm-divider-primary bg-fm-icon-info h-6 w-6 rounded border"></div>
|
|
544
566
|
</div>
|
|
545
567
|
<div className="flex items-center justify-between">
|
|
546
|
-
<span className="text-
|
|
568
|
+
<span className="text-fm-secondary text-sm">
|
|
547
569
|
Border
|
|
548
570
|
</span>
|
|
549
|
-
<div className="h-6 w-6 rounded border
|
|
571
|
+
<div className="border-fm-divider-primary bg-fm-secondary-500 h-6 w-6 rounded border"></div>
|
|
550
572
|
</div>
|
|
551
573
|
</div>
|
|
552
574
|
</div>
|
|
553
575
|
</div>
|
|
554
|
-
<div className="rounded-lg
|
|
555
|
-
<pre className="overflow-x-auto text-sm
|
|
576
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
577
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
556
578
|
{`// Style panel header
|
|
557
579
|
<div className="flex items-center gap-2">
|
|
558
580
|
<PaintRollIcon className="h-4 w-4 text-indigo-400" />
|
|
@@ -565,30 +587,30 @@ function MyComponent() {
|
|
|
565
587
|
|
|
566
588
|
{/* Settings Menu */}
|
|
567
589
|
<div className="!space-y-4">
|
|
568
|
-
<h3 className="text-lg font-semibold
|
|
590
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
569
591
|
Settings Menu
|
|
570
592
|
</h3>
|
|
571
593
|
<div className="!space-y-4">
|
|
572
|
-
<div className="rounded-lg border
|
|
594
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
573
595
|
<div className="!space-y-2">
|
|
574
|
-
<div className="flex items-center gap-3 rounded-lg px-3 py-2
|
|
575
|
-
<div className="h-5 w-5 rounded
|
|
596
|
+
<div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
|
|
597
|
+
<div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
|
|
576
598
|
<span className="text-sm">General</span>
|
|
577
599
|
</div>
|
|
578
|
-
<div className="flex items-center gap-3 rounded-lg
|
|
600
|
+
<div className="bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-3 rounded-lg px-3 py-2">
|
|
579
601
|
<PaintRollIcon className="h-5 w-5" />
|
|
580
602
|
<span className="text-sm font-medium">
|
|
581
603
|
Appearance
|
|
582
604
|
</span>
|
|
583
605
|
</div>
|
|
584
|
-
<div className="flex items-center gap-3 rounded-lg px-3 py-2
|
|
585
|
-
<div className="h-5 w-5 rounded
|
|
606
|
+
<div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
|
|
607
|
+
<div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
|
|
586
608
|
<span className="text-sm">Privacy</span>
|
|
587
609
|
</div>
|
|
588
610
|
</div>
|
|
589
611
|
</div>
|
|
590
|
-
<div className="rounded-lg
|
|
591
|
-
<pre className="overflow-x-auto text-sm
|
|
612
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
613
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
592
614
|
{`// Active settings menu item
|
|
593
615
|
<div className="flex items-center gap-3 bg-indigo-500/20 px-3 py-2 rounded-lg text-indigo-200">
|
|
594
616
|
<PaintRollIcon className="h-5 w-5" />
|
|
@@ -603,64 +625,64 @@ function MyComponent() {
|
|
|
603
625
|
|
|
604
626
|
{/* Accessibility */}
|
|
605
627
|
<div className="!space-y-8">
|
|
606
|
-
<h2 className="text-center text-3xl font-bold
|
|
628
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
607
629
|
Accessibility Features
|
|
608
630
|
</h2>
|
|
609
631
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
610
|
-
<div className="!space-y-4 rounded-lg border
|
|
611
|
-
<h3 className="text-lg font-semibold
|
|
632
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
633
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
612
634
|
✅ Built-in Features
|
|
613
635
|
</h3>
|
|
614
|
-
<ul className="!space-y-2 text-sm
|
|
615
|
-
<li className="
|
|
636
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
637
|
+
<li className="text-fm-secondary!">
|
|
616
638
|
Uses Radix UI AccessibleIcon wrapper
|
|
617
639
|
</li>
|
|
618
|
-
<li className="
|
|
640
|
+
<li className="text-fm-secondary!">
|
|
619
641
|
Provides screen reader label "Paint Roll icon"
|
|
620
642
|
</li>
|
|
621
|
-
<li className="
|
|
643
|
+
<li className="text-fm-secondary!">
|
|
622
644
|
Supports keyboard navigation when interactive
|
|
623
645
|
</li>
|
|
624
|
-
<li className="
|
|
646
|
+
<li className="text-fm-secondary!">
|
|
625
647
|
Maintains proper color contrast ratios
|
|
626
648
|
</li>
|
|
627
|
-
<li className="
|
|
649
|
+
<li className="text-fm-secondary!">
|
|
628
650
|
Scales with user's font size preferences
|
|
629
651
|
</li>
|
|
630
652
|
</ul>
|
|
631
653
|
</div>
|
|
632
654
|
|
|
633
|
-
<div className="!space-y-4 rounded-lg border
|
|
634
|
-
<h3 className="text-lg font-semibold
|
|
655
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
656
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
635
657
|
💡 Best Practices
|
|
636
658
|
</h3>
|
|
637
|
-
<ul className="!space-y-2 text-sm
|
|
638
|
-
<li className="
|
|
659
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
660
|
+
<li className="text-fm-secondary!">
|
|
639
661
|
Always pair with descriptive text or tooltips
|
|
640
662
|
</li>
|
|
641
|
-
<li className="
|
|
663
|
+
<li className="text-fm-secondary!">
|
|
642
664
|
Use consistent colors for design tools
|
|
643
665
|
</li>
|
|
644
|
-
<li className="
|
|
666
|
+
<li className="text-fm-secondary!">
|
|
645
667
|
Ensure sufficient color contrast
|
|
646
668
|
</li>
|
|
647
|
-
<li className="
|
|
669
|
+
<li className="text-fm-secondary!">
|
|
648
670
|
Add focus states for interactive elements
|
|
649
671
|
</li>
|
|
650
|
-
<li className="
|
|
672
|
+
<li className="text-fm-secondary!">
|
|
651
673
|
Consider tool context for better labeling
|
|
652
674
|
</li>
|
|
653
675
|
</ul>
|
|
654
676
|
</div>
|
|
655
677
|
</div>
|
|
656
678
|
|
|
657
|
-
<div className="rounded-lg border
|
|
658
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
679
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
680
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
659
681
|
Custom Accessibility Label
|
|
660
682
|
</h3>
|
|
661
683
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
662
|
-
<div className="rounded-lg
|
|
663
|
-
<pre className="overflow-x-auto text-sm
|
|
684
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
685
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
664
686
|
{`// Custom implementation with specific label
|
|
665
687
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
666
688
|
|
|
@@ -680,13 +702,13 @@ function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
|
|
|
680
702
|
</pre>
|
|
681
703
|
</div>
|
|
682
704
|
<div className="!space-y-4">
|
|
683
|
-
<p className="text-
|
|
705
|
+
<p className="text-fm-secondary! text-sm">
|
|
684
706
|
For specific contexts, you can wrap the PaintRollIcon
|
|
685
707
|
with a custom AccessibleIcon component that provides
|
|
686
708
|
more descriptive labels for different styling tools.
|
|
687
709
|
</p>
|
|
688
|
-
<div className="
|
|
689
|
-
<div className="flex items-center gap-2 text-sm
|
|
710
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
711
|
+
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
690
712
|
<PaintRollIcon className="h-4 w-4" />
|
|
691
713
|
<span>
|
|
692
714
|
This approach gives screen readers more context
|
|
@@ -701,46 +723,58 @@ function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
|
|
|
701
723
|
|
|
702
724
|
{/* Related Icons */}
|
|
703
725
|
<div className="!space-y-8">
|
|
704
|
-
<h2 className="text-center text-3xl font-bold
|
|
726
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
705
727
|
Related Icons
|
|
706
728
|
</h2>
|
|
707
729
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
708
|
-
<div className="!space-y-3 rounded-lg border
|
|
709
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
730
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
731
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
710
732
|
<span className="text-2xl">🎨</span>
|
|
711
733
|
</div>
|
|
712
734
|
<div>
|
|
713
|
-
<div className="font-medium
|
|
714
|
-
|
|
735
|
+
<div className="text-fm-icon-active font-medium">
|
|
736
|
+
PaletteIcon
|
|
737
|
+
</div>
|
|
738
|
+
<div className="text-fm-tertiary text-xs">
|
|
715
739
|
Color selection
|
|
716
740
|
</div>
|
|
717
741
|
</div>
|
|
718
742
|
</div>
|
|
719
|
-
<div className="!space-y-3 rounded-lg border
|
|
720
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
743
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
744
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
721
745
|
<span className="text-2xl">🖌️</span>
|
|
722
746
|
</div>
|
|
723
747
|
<div>
|
|
724
|
-
<div className="font-medium
|
|
725
|
-
|
|
748
|
+
<div className="text-fm-icon-active font-medium">
|
|
749
|
+
BrushIcon
|
|
750
|
+
</div>
|
|
751
|
+
<div className="text-fm-tertiary text-xs">
|
|
752
|
+
Drawing tools
|
|
753
|
+
</div>
|
|
726
754
|
</div>
|
|
727
755
|
</div>
|
|
728
|
-
<div className="!space-y-3 rounded-lg border
|
|
729
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
756
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
757
|
+
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
730
758
|
<span className="text-2xl">⚙️</span>
|
|
731
759
|
</div>
|
|
732
760
|
<div>
|
|
733
|
-
<div className="font-medium
|
|
734
|
-
|
|
761
|
+
<div className="text-fm-icon-active font-medium">
|
|
762
|
+
SettingsIcon
|
|
763
|
+
</div>
|
|
764
|
+
<div className="text-fm-tertiary text-xs">
|
|
765
|
+
Configuration
|
|
766
|
+
</div>
|
|
735
767
|
</div>
|
|
736
768
|
</div>
|
|
737
|
-
<div className="!space-y-3 rounded-lg border
|
|
738
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
769
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
770
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
739
771
|
<span className="text-2xl">🌈</span>
|
|
740
772
|
</div>
|
|
741
773
|
<div>
|
|
742
|
-
<div className="font-medium
|
|
743
|
-
|
|
774
|
+
<div className="text-fm-icon-active font-medium">
|
|
775
|
+
ThemeIcon
|
|
776
|
+
</div>
|
|
777
|
+
<div className="text-fm-tertiary text-xs">
|
|
744
778
|
Theme switching
|
|
745
779
|
</div>
|
|
746
780
|
</div>
|
|
@@ -750,15 +784,15 @@ function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
|
|
|
750
784
|
</div>
|
|
751
785
|
|
|
752
786
|
{/* Footer */}
|
|
753
|
-
<div className="border-
|
|
787
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
754
788
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
755
789
|
<div className="!space-y-4 text-center">
|
|
756
|
-
<p className="
|
|
790
|
+
<p className="text-fm-tertiary!">
|
|
757
791
|
PaintRollIcon is part of the Aural UI icon library, designed
|
|
758
792
|
specifically for design tools, theme customization, and
|
|
759
793
|
styling interfaces with accessibility in mind.
|
|
760
794
|
</p>
|
|
761
|
-
<p className="text-
|
|
795
|
+
<p className="text-fm-placeholder! text-sm">
|
|
762
796
|
Perfect for design applications, theme editors, and
|
|
763
797
|
customization interfaces that need clear visual
|
|
764
798
|
representation of styling tools. Follows WCAG guidelines for
|
|
@@ -809,8 +843,8 @@ const storyParameters = {
|
|
|
809
843
|
backgrounds: {
|
|
810
844
|
default: "dark",
|
|
811
845
|
values: [
|
|
812
|
-
{ name: "dark", value: "
|
|
813
|
-
{ name: "darker", value: "
|
|
846
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
847
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
814
848
|
],
|
|
815
849
|
},
|
|
816
850
|
}
|
|
@@ -819,12 +853,12 @@ export const Default: Story = {
|
|
|
819
853
|
args: {
|
|
820
854
|
width: 24,
|
|
821
855
|
height: 24,
|
|
822
|
-
className: "text-
|
|
856
|
+
className: "text-fm-icon-info",
|
|
823
857
|
withAccessibility: true,
|
|
824
858
|
},
|
|
825
859
|
parameters: storyParameters,
|
|
826
860
|
render: (args) => (
|
|
827
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
861
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
828
862
|
<PaintRollIcon {...args} />
|
|
829
863
|
</div>
|
|
830
864
|
),
|
|
@@ -841,30 +875,30 @@ export const SizeVariations: Story = {
|
|
|
841
875
|
},
|
|
842
876
|
},
|
|
843
877
|
render: () => (
|
|
844
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
878
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
845
879
|
<div className="text-center">
|
|
846
|
-
<PaintRollIcon className="!mx-auto mb-2 h-3 w-3
|
|
847
|
-
<span className="text-
|
|
880
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
881
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
848
882
|
</div>
|
|
849
883
|
<div className="text-center">
|
|
850
|
-
<PaintRollIcon className="!mx-auto mb-2 h-4 w-4
|
|
851
|
-
<span className="text-
|
|
884
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
885
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
852
886
|
</div>
|
|
853
887
|
<div className="text-center">
|
|
854
|
-
<PaintRollIcon className="!mx-auto mb-2 h-5 w-5
|
|
855
|
-
<span className="text-
|
|
888
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
889
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
856
890
|
</div>
|
|
857
891
|
<div className="text-center">
|
|
858
|
-
<PaintRollIcon className="!mx-auto mb-2 h-6 w-6
|
|
859
|
-
<span className="text-
|
|
892
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
893
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
860
894
|
</div>
|
|
861
895
|
<div className="text-center">
|
|
862
|
-
<PaintRollIcon className="!mx-auto mb-2 h-8 w-8
|
|
863
|
-
<span className="text-
|
|
896
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
897
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
864
898
|
</div>
|
|
865
899
|
<div className="text-center">
|
|
866
|
-
<PaintRollIcon className="!mx-auto mb-2 h-12 w-12
|
|
867
|
-
<span className="text-
|
|
900
|
+
<PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
901
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
868
902
|
</div>
|
|
869
903
|
</div>
|
|
870
904
|
),
|
|
@@ -881,34 +915,42 @@ export const ColorVariations: Story = {
|
|
|
881
915
|
},
|
|
882
916
|
},
|
|
883
917
|
render: () => (
|
|
884
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
918
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
885
919
|
<div className="text-center">
|
|
886
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
887
|
-
<PaintRollIcon className="h-8 w-8
|
|
920
|
+
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
921
|
+
<PaintRollIcon className="text-fm-icon-info h-8 w-8" />
|
|
922
|
+
</div>
|
|
923
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
924
|
+
Primary Tool
|
|
888
925
|
</div>
|
|
889
|
-
<div className="text-
|
|
890
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
926
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
891
927
|
</div>
|
|
892
928
|
<div className="text-center">
|
|
893
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
894
|
-
<PaintRollIcon className="h-8 w-8
|
|
929
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
930
|
+
<PaintRollIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
931
|
+
</div>
|
|
932
|
+
<div className="text-fm-icon-active text-sm font-medium">Creative</div>
|
|
933
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
934
|
+
text-fm-secondary-600
|
|
895
935
|
</div>
|
|
896
|
-
<div className="text-sm font-medium text-white">Creative</div>
|
|
897
|
-
<div className="text-xs text-violet-400">text-violet-400</div>
|
|
898
936
|
</div>
|
|
899
937
|
<div className="text-center">
|
|
900
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
901
|
-
<PaintRollIcon className="h-8 w-8
|
|
938
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
939
|
+
<PaintRollIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
940
|
+
</div>
|
|
941
|
+
<div className="text-fm-icon-active text-sm font-medium">Artistic</div>
|
|
942
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
943
|
+
text-fm-secondary-600
|
|
902
944
|
</div>
|
|
903
|
-
<div className="text-sm font-medium text-white">Artistic</div>
|
|
904
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
905
945
|
</div>
|
|
906
946
|
<div className="text-center">
|
|
907
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
908
|
-
<PaintRollIcon className="h-8 w-8
|
|
947
|
+
<div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
948
|
+
<PaintRollIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
949
|
+
</div>
|
|
950
|
+
<div className="text-fm-icon-active text-sm font-medium">Accent</div>
|
|
951
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
952
|
+
text-fm-secondary-600
|
|
909
953
|
</div>
|
|
910
|
-
<div className="text-sm font-medium text-white">Accent</div>
|
|
911
|
-
<div className="text-xs text-pink-400">text-pink-400</div>
|
|
912
954
|
</div>
|
|
913
955
|
</div>
|
|
914
956
|
),
|
|
@@ -925,23 +967,25 @@ export const UsageExamples: Story = {
|
|
|
925
967
|
},
|
|
926
968
|
},
|
|
927
969
|
render: () => (
|
|
928
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
970
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
929
971
|
{/* Theme Customizer */}
|
|
930
972
|
<div className="!space-y-2">
|
|
931
|
-
<h3 className="text-sm font-medium
|
|
932
|
-
|
|
973
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
974
|
+
Theme Customizer
|
|
975
|
+
</h3>
|
|
976
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
933
977
|
<div className="!space-y-3">
|
|
934
978
|
<div className="flex items-center justify-between">
|
|
935
|
-
<h4 className="font-medium
|
|
936
|
-
<button className="flex items-center gap-2 rounded border
|
|
979
|
+
<h4 className="text-fm-icon-active font-medium">Appearance</h4>
|
|
980
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded border px-3 py-1.5 transition-colors">
|
|
937
981
|
<PaintRollIcon className="h-4 w-4" />
|
|
938
982
|
<span className="text-sm">Customize</span>
|
|
939
983
|
</button>
|
|
940
984
|
</div>
|
|
941
985
|
<div className="grid grid-cols-3 gap-2">
|
|
942
|
-
<div className="h-8 rounded
|
|
943
|
-
<div className="
|
|
944
|
-
<div className="
|
|
986
|
+
<div className="bg-fm-icon-info/20 h-8 rounded"></div>
|
|
987
|
+
<div className="bg-fm-secondary-500/20 h-8 rounded"></div>
|
|
988
|
+
<div className="bg-fm-secondary-500/20 h-8 rounded"></div>
|
|
945
989
|
</div>
|
|
946
990
|
</div>
|
|
947
991
|
</div>
|
|
@@ -949,19 +993,21 @@ export const UsageExamples: Story = {
|
|
|
949
993
|
|
|
950
994
|
{/* Design Tool Toolbar */}
|
|
951
995
|
<div className="!space-y-2">
|
|
952
|
-
<h3 className="text-sm font-medium
|
|
953
|
-
|
|
996
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
997
|
+
Design Tool Toolbar
|
|
998
|
+
</h3>
|
|
999
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
954
1000
|
<div className="flex items-center gap-1">
|
|
955
|
-
<button className="
|
|
1001
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
|
|
956
1002
|
<div className="h-5 w-5 rounded-sm border border-current"></div>
|
|
957
1003
|
</button>
|
|
958
|
-
<button className="
|
|
1004
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
|
|
959
1005
|
<div className="h-5 w-5 rounded-full border border-current"></div>
|
|
960
1006
|
</button>
|
|
961
|
-
<button className="
|
|
1007
|
+
<button className="bg-fm-icon-info/20 text-fm-icon-info rounded p-2">
|
|
962
1008
|
<PaintRollIcon className="h-5 w-5" />
|
|
963
1009
|
</button>
|
|
964
|
-
<button className="
|
|
1010
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
|
|
965
1011
|
<div className="h-5 w-5 border-l-2 border-current"></div>
|
|
966
1012
|
</button>
|
|
967
1013
|
</div>
|
|
@@ -970,19 +1016,21 @@ export const UsageExamples: Story = {
|
|
|
970
1016
|
|
|
971
1017
|
{/* Settings Menu */}
|
|
972
1018
|
<div className="!space-y-2">
|
|
973
|
-
<h3 className="text-sm font-medium
|
|
974
|
-
|
|
1019
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1020
|
+
Settings Menu
|
|
1021
|
+
</h3>
|
|
1022
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
975
1023
|
<div className="!space-y-2">
|
|
976
|
-
<div className="flex items-center gap-3 rounded-lg px-3 py-2
|
|
977
|
-
<div className="h-5 w-5 rounded
|
|
1024
|
+
<div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
|
|
1025
|
+
<div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
|
|
978
1026
|
<span className="text-sm">General</span>
|
|
979
1027
|
</div>
|
|
980
|
-
<div className="flex items-center gap-3 rounded-lg
|
|
1028
|
+
<div className="bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-3 rounded-lg px-3 py-2">
|
|
981
1029
|
<PaintRollIcon className="h-5 w-5" />
|
|
982
1030
|
<span className="text-sm font-medium">Appearance</span>
|
|
983
1031
|
</div>
|
|
984
|
-
<div className="flex items-center gap-3 rounded-lg px-3 py-2
|
|
985
|
-
<div className="h-5 w-5 rounded
|
|
1032
|
+
<div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
|
|
1033
|
+
<div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
|
|
986
1034
|
<span className="text-sm">Privacy</span>
|
|
987
1035
|
</div>
|
|
988
1036
|
</div>
|
|
@@ -1005,12 +1053,12 @@ export const Playground: Story = {
|
|
|
1005
1053
|
args: {
|
|
1006
1054
|
width: 32,
|
|
1007
1055
|
height: 32,
|
|
1008
|
-
className: "text-
|
|
1056
|
+
className: "text-fm-icon-info",
|
|
1009
1057
|
strokeWidth: 1.5,
|
|
1010
1058
|
},
|
|
1011
1059
|
render: (args) => (
|
|
1012
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1013
|
-
<div className="rounded-lg border
|
|
1060
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
|
|
1061
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1014
1062
|
<PaintRollIcon {...args} />
|
|
1015
1063
|
</div>
|
|
1016
1064
|
</div>
|