@yuhuanowo/yunui 0.2.3 → 0.2.5
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/ai.js +2 -2
- package/dist/ai.js.map +1 -1
- package/dist/{chunk-CUVDFULS.js → chunk-THKP6TBK.js} +8 -6
- package/dist/chunk-THKP6TBK.js.map +1 -0
- package/dist/index.d.ts +40 -6
- package/dist/index.js +1 -1
- package/dist/patterns.js +1 -1
- package/package.json +1 -1
- package/styles/yunui.css +83 -0
- package/dist/chunk-CUVDFULS.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -198,7 +198,8 @@ interface ComboboxProps {
|
|
|
198
198
|
/** Label template for the "create new" row; `{value}` is replaced with the typed text. */
|
|
199
199
|
creatableText?: string;
|
|
200
200
|
}
|
|
201
|
-
/** Searchable, optionally creatable combobox — type to filter, Enter to pick or create.
|
|
201
|
+
/** Searchable, optionally creatable combobox — type to filter, Enter to pick or create.
|
|
202
|
+
* For long lists where users type to narrow; see `Select`'s doc for "which select do I use". */
|
|
202
203
|
declare function Combobox({ options, value, onChange, placeholder, className, disabled, allowCustom, creatableText, }: ComboboxProps): React$1.JSX.Element;
|
|
203
204
|
|
|
204
205
|
/**
|
|
@@ -457,7 +458,14 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
457
458
|
}
|
|
458
459
|
/** Small inline pill for status/labels, with semantic color variants. */
|
|
459
460
|
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
460
|
-
/**
|
|
461
|
+
/**
|
|
462
|
+
* Radix Dialog root — controls open state for a modal dialog. Compose with Dialog* parts.
|
|
463
|
+
*
|
|
464
|
+
* The accessible default for dialogs (focus trap, escape, scroll lock, full ARIA).
|
|
465
|
+
* For the prop-driven styled modal use `Modal`; for confirmations use
|
|
466
|
+
* `ConfirmModal`/`DeleteConfirmModal`/`RegenerateConfirmModal` — see Modal's doc
|
|
467
|
+
* for the full "which dialog do I use" guidance.
|
|
468
|
+
*/
|
|
461
469
|
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
462
470
|
/** Element that opens the dialog when activated. */
|
|
463
471
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -477,7 +485,19 @@ declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitiv
|
|
|
477
485
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
478
486
|
/** Footer layout block (right-aligned action buttons) for the dialog. */
|
|
479
487
|
declare function DialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
480
|
-
/**
|
|
488
|
+
/**
|
|
489
|
+
* Radix Select root — a styled native-feeling single-select. Compose with Select* parts.
|
|
490
|
+
*
|
|
491
|
+
* Choosing a select (so you never have to guess):
|
|
492
|
+
* - `Select` (this, Radix): the accessible default for a fixed, smallish list of
|
|
493
|
+
* options authored as JSX (`<SelectItem>`). Best a11y/keyboard support.
|
|
494
|
+
* - `CustomSelect`: data-driven (`options` array) with optional search/icons —
|
|
495
|
+
* reach for it when options come from data or you need a searchable list.
|
|
496
|
+
* - `Combobox`: data-driven select with a filterable text input (type-ahead),
|
|
497
|
+
* for longer lists where the user types to narrow.
|
|
498
|
+
* - `SegmentedSelect`: a small inline segmented control (2-5 visible choices),
|
|
499
|
+
* not a dropdown.
|
|
500
|
+
*/
|
|
481
501
|
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
482
502
|
/** Renders the selected value (or placeholder) inside the trigger. */
|
|
483
503
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
@@ -659,7 +679,8 @@ interface CustomSelectProps {
|
|
|
659
679
|
/** Disable interaction and dim the control. */
|
|
660
680
|
disabled?: boolean;
|
|
661
681
|
}
|
|
662
|
-
/** Custom dropdown select with optional search, icons, descriptions, and full keyboard support.
|
|
682
|
+
/** Custom dropdown select with optional search, icons, descriptions, and full keyboard support.
|
|
683
|
+
* Data-driven alternative to `Select`; see `Select`'s doc for "which select do I use". */
|
|
663
684
|
declare function CustomSelect({ options, value, onChange, placeholder, searchable, className, disabled, }: CustomSelectProps): React$1.JSX.Element;
|
|
664
685
|
|
|
665
686
|
interface SegmentedOption<T = string> {
|
|
@@ -683,7 +704,8 @@ interface SegmentedSelectProps<T = string> {
|
|
|
683
704
|
/** Disable interaction and dim the control. */
|
|
684
705
|
disabled?: boolean;
|
|
685
706
|
}
|
|
686
|
-
/** Inline segmented control — a row of buttons where one option is active at a time.
|
|
707
|
+
/** Inline segmented control — a row of buttons where one option is active at a time.
|
|
708
|
+
* For 2-5 always-visible choices (not a dropdown); see `Select`'s doc for "which select do I use". */
|
|
687
709
|
declare function SegmentedSelect<T = string>({ options, value, onChange, className, disabled, }: SegmentedSelectProps<T>): React$1.JSX.Element;
|
|
688
710
|
|
|
689
711
|
interface NavTab {
|
|
@@ -710,6 +732,10 @@ interface NavTabsProps {
|
|
|
710
732
|
* `::after`), which slides in + fades + grows exactly like the sidebar's
|
|
711
733
|
* per-item active bar, just rotated to the bottom edge and sitting inside the
|
|
712
734
|
* tab's floating hover box. Hovering raises that soft rounded box (懸浮框).
|
|
735
|
+
*
|
|
736
|
+
* `NavTabs` is a controlled nav bar (active key + onChange) — use it for page/
|
|
737
|
+
* section navigation. For tab panels that show/hide content, use `Tabs` (Radix,
|
|
738
|
+
* with `TabsList`/`TabsTrigger`/`TabsContent`).
|
|
713
739
|
*/
|
|
714
740
|
declare function NavTabs({ tabs, activeKey, onChange, className, ariaLabel }: NavTabsProps): React$1.JSX.Element;
|
|
715
741
|
|
|
@@ -900,7 +926,15 @@ interface YunUITheme {
|
|
|
900
926
|
solid?: YunUISolid;
|
|
901
927
|
surface?: YunUISurface;
|
|
902
928
|
theme?: YunUIColorScheme;
|
|
929
|
+
/**
|
|
930
|
+
* Opt the legacy monochrome accent into the brand palette: `"brand"` makes
|
|
931
|
+
* accent-driven components follow `brand`; `"mono"` (default) keeps the
|
|
932
|
+
* original monochrome accent. Pairs with the `data-accent-source` CSS hook.
|
|
933
|
+
*/
|
|
934
|
+
accentSource?: YunUIAccentSource;
|
|
903
935
|
}
|
|
936
|
+
/** Source for the accent color: the brand palette, or the default monochrome. */
|
|
937
|
+
type YunUIAccentSource = "brand" | "mono";
|
|
904
938
|
/** All palettes available to the brand/accent/neutral roles (for building pickers). */
|
|
905
939
|
declare const YUNUI_PALETTES: YunUIPalette[];
|
|
906
940
|
/**
|
|
@@ -918,4 +952,4 @@ declare function readTheme(el?: HTMLElement | null): YunUITheme;
|
|
|
918
952
|
*/
|
|
919
953
|
declare function useYunUITheme(defaults?: YunUITheme): [YunUITheme, (patch: YunUITheme) => void];
|
|
920
954
|
|
|
921
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, type FlexProps, Grid, type GridCount, type GridProps, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, PageLoader, Pagination, type PaginationProps, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, applyTheme, cn, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior, useYunUITheme };
|
|
955
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, type FlexProps, Grid, type GridCount, type GridProps, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, PageLoader, Pagination, type PaginationProps, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, type YunUIAccentSource, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, applyTheme, cn, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior, useYunUITheme };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, Grid, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, PageLoader, Pagination, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, applyTheme, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior, useYunUITheme } from './chunk-
|
|
2
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, Grid, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, PageLoader, Pagination, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, applyTheme, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior, useYunUITheme } from './chunk-THKP6TBK.js';
|
|
3
3
|
export { ThemeToggle, cn } from './chunk-TFZKMJGF.js';
|
|
4
4
|
import './chunk-U2LNRVMI.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/patterns.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-
|
|
2
|
+
import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-THKP6TBK.js';
|
|
3
3
|
import { copyToClipboard } from './chunk-BO6CDGJS.js';
|
|
4
4
|
export { Footer } from './chunk-BO6CDGJS.js';
|
|
5
5
|
import { cn } from './chunk-TFZKMJGF.js';
|
package/package.json
CHANGED
package/styles/yunui.css
CHANGED
|
@@ -212,6 +212,71 @@
|
|
|
212
212
|
--color-fd-overlay: rgba(0, 0, 0, 0.7);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
/* =====================================================
|
|
216
|
+
OPT-IN BRAND ACCENT — bridge the legacy (monochrome) accent to the
|
|
217
|
+
runtime-themeable token system. Set data-accent-source="brand" on <html>
|
|
218
|
+
together with data-brand="<palette>" (and optionally data-theme) to make
|
|
219
|
+
accent-driven UI (.btn-accent, bg-accent / text-accent utilities, etc.)
|
|
220
|
+
follow your brand color — the same icons/tokens, re-themed per project with
|
|
221
|
+
zero rebuild. Placed after all --accent definitions so it wins only when the
|
|
222
|
+
attribute is present; WITHOUT it, the default monochrome look is byte-identical.
|
|
223
|
+
Use the helper: applyTheme({ accentSource: "brand", brand: "blue" }).
|
|
224
|
+
===================================================== */
|
|
225
|
+
[data-accent-source="brand"] {
|
|
226
|
+
--accent: var(--brand-solid-strong);
|
|
227
|
+
--accent-subtle: var(--brand-alpha-weak);
|
|
228
|
+
--accent-muted: var(--brand-alpha-medium);
|
|
229
|
+
|
|
230
|
+
/* Broaden the reach: every "active / selected / focused" state follows the
|
|
231
|
+
brand too — bg-primary/border-primary/text-primary fills (Switch, Checkbox,
|
|
232
|
+
RadioGroup, selected combobox/select rows, Progress, Tabs…), the on-primary
|
|
233
|
+
ink, and focus-visible rings. Body text stays on --color-foreground, so
|
|
234
|
+
readability is untouched. Default (no attribute) is byte-identical. */
|
|
235
|
+
--color-primary: var(--brand-solid-strong);
|
|
236
|
+
--color-primary-foreground: var(--brand-on-solid-strong);
|
|
237
|
+
--color-ring: var(--brand-solid-strong);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* NOTE: the primary/accent BUTTON brand overrides live AFTER the `.dark .btn-*`
|
|
241
|
+
rules (bottom of this file, "OPT-IN BRAND BUTTONS") so they win in dark mode
|
|
242
|
+
too — placing them here would lose to the later, equal-specificity dark rules. */
|
|
243
|
+
|
|
244
|
+
/* Filled elements that hard-code the foreground ink (Slider range + thumb,
|
|
245
|
+
Progress fill) follow the brand under opt-in too. Markers do nothing by
|
|
246
|
+
default, so the monochrome look is unchanged. */
|
|
247
|
+
[data-accent-source="brand"] .yunui-accent-bg {
|
|
248
|
+
background-color: var(--brand-solid-strong);
|
|
249
|
+
}
|
|
250
|
+
[data-accent-source="brand"] .yunui-accent-border {
|
|
251
|
+
border-color: var(--brand-solid-strong);
|
|
252
|
+
}
|
|
253
|
+
/* Text/icon ink sitting ON a solid brand fill (e.g. the navbar Sign-up CTA). */
|
|
254
|
+
[data-accent-source="brand"] .yunui-accent-on {
|
|
255
|
+
color: var(--brand-on-solid-strong);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* Active navigation indicators (sidebar active bar + tab underline + active
|
|
259
|
+
label) follow the brand. Higher specificity than the base .nav-* rules, so it
|
|
260
|
+
wins in light and dark. */
|
|
261
|
+
[data-accent-source="brand"] .nav-item.active {
|
|
262
|
+
color: var(--brand-solid-strong);
|
|
263
|
+
}
|
|
264
|
+
[data-accent-source="brand"] .nav-item.active::before {
|
|
265
|
+
background: var(--brand-solid-strong);
|
|
266
|
+
}
|
|
267
|
+
[data-accent-source="brand"] .nav-tab.active {
|
|
268
|
+
color: var(--brand-solid-strong);
|
|
269
|
+
}
|
|
270
|
+
[data-accent-source="brand"] .nav-tab.active::after {
|
|
271
|
+
background: var(--brand-solid-strong);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* Radix Tabs active trigger — translucent brand tint instead of the plain pill. */
|
|
275
|
+
[data-accent-source="brand"] .yunui-tab-trigger[data-state="active"] {
|
|
276
|
+
background-color: var(--brand-alpha-weak);
|
|
277
|
+
color: var(--brand-solid-strong);
|
|
278
|
+
}
|
|
279
|
+
|
|
215
280
|
/* True Black — Fumadocs sidebar overrides */
|
|
216
281
|
.true-black #nd-sidebar {
|
|
217
282
|
--color-fd-muted: #111111;
|
|
@@ -740,6 +805,24 @@ body {
|
|
|
740
805
|
background: rgba(248, 113, 113, 0.2);
|
|
741
806
|
}
|
|
742
807
|
|
|
808
|
+
/* =====================================================
|
|
809
|
+
OPT-IN BRAND BUTTONS — under data-accent-source="brand", the primary/accent
|
|
810
|
+
buttons go SOLID brand. Placed AFTER the .dark .btn-* overrides so it wins in
|
|
811
|
+
BOTH light and dark (equal specificity → later source wins). Without the
|
|
812
|
+
attribute, the monochrome buttons above are untouched.
|
|
813
|
+
===================================================== */
|
|
814
|
+
[data-accent-source="brand"] .btn-primary,
|
|
815
|
+
[data-accent-source="brand"] .btn-accent {
|
|
816
|
+
color: var(--brand-solid-strong);
|
|
817
|
+
border-color: var(--brand-alpha-strong);
|
|
818
|
+
background: var(--brand-alpha-weak);
|
|
819
|
+
}
|
|
820
|
+
[data-accent-source="brand"] .btn-primary:hover,
|
|
821
|
+
[data-accent-source="brand"] .btn-accent:hover {
|
|
822
|
+
background: var(--brand-alpha-medium);
|
|
823
|
+
border-color: var(--brand-solid-strong);
|
|
824
|
+
}
|
|
825
|
+
|
|
743
826
|
/* =====================================================
|
|
744
827
|
Select Dropdowns
|
|
745
828
|
===================================================== */
|