@vinyasa/tokens 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +176 -43
- package/dist/cjs/index.cjs +250 -298
- package/dist/esm/VinyasaProvider.d.ts +5 -2
- package/dist/esm/border.d.ts +4 -0
- package/dist/esm/brands.d.ts +20 -0
- package/dist/esm/contract.css.d.ts +5 -0
- package/dist/esm/density.d.ts +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +240 -251
- package/dist/esm/radius.d.ts +7 -0
- package/dist/esm/shadow.d.ts +3 -0
- package/dist/esm/spacing.d.ts +10 -0
- package/dist/esm/themes/base.d.ts +13 -3
- package/dist/esm/themes.d.ts +1 -1
- package/package.json +1 -1
- package/dist/esm/primitives.d.ts +0 -107
- package/dist/esm/themes/orange.d.ts +0 -3
|
@@ -2,12 +2,15 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import { type Density } from './density';
|
|
3
3
|
import { type ColorScheme, type Contrast } from './themes';
|
|
4
4
|
import { type VinyasaTheme } from './themes/base';
|
|
5
|
+
export type BrandName = 'dusk' | 'sunrise' | 'yellow';
|
|
5
6
|
export declare const useVinyasaTheme: () => VinyasaTheme;
|
|
7
|
+
export type ThemeOverride = Partial<Record<ColorScheme, Partial<Record<Contrast, Partial<VinyasaTheme>>>>>;
|
|
6
8
|
export interface VinyasaProviderProps {
|
|
7
|
-
theme?:
|
|
9
|
+
theme?: ThemeOverride;
|
|
8
10
|
colorScheme?: ColorScheme;
|
|
11
|
+
brand?: BrandName;
|
|
9
12
|
contrast?: Contrast;
|
|
10
13
|
density?: Density;
|
|
11
14
|
children: ReactNode;
|
|
12
15
|
}
|
|
13
|
-
export declare const VinyasaProvider: ({ theme, colorScheme, contrast, density, children, }: VinyasaProviderProps) => import("react").JSX.Element;
|
|
16
|
+
export declare const VinyasaProvider: ({ theme, colorScheme, brand, contrast, density, children, }: VinyasaProviderProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BrandAccent {
|
|
2
|
+
primary: string;
|
|
3
|
+
onPrimary: string;
|
|
4
|
+
focus: string;
|
|
5
|
+
tertiary: string;
|
|
6
|
+
onTertiary: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Brand {
|
|
9
|
+
light: {
|
|
10
|
+
normal: BrandAccent;
|
|
11
|
+
high: BrandAccent;
|
|
12
|
+
};
|
|
13
|
+
dark: {
|
|
14
|
+
normal: BrandAccent;
|
|
15
|
+
high: BrandAccent;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare const duskBrand: Brand;
|
|
19
|
+
export declare const sunriseBrand: Brand;
|
|
20
|
+
export declare const yellowBrand: Brand;
|
|
@@ -25,10 +25,15 @@ export declare const themeContract: {
|
|
|
25
25
|
space4: `var(--${string})`;
|
|
26
26
|
space5: `var(--${string})`;
|
|
27
27
|
space6: `var(--${string})`;
|
|
28
|
+
space7: `var(--${string})`;
|
|
29
|
+
space8: `var(--${string})`;
|
|
30
|
+
radiusXs: `var(--${string})`;
|
|
28
31
|
radiusSm: `var(--${string})`;
|
|
29
32
|
radiusMd: `var(--${string})`;
|
|
33
|
+
radiusLg: `var(--${string})`;
|
|
30
34
|
radiusFull: `var(--${string})`;
|
|
31
35
|
borderWidthThin: `var(--${string})`;
|
|
36
|
+
borderWidthThick: `var(--${string})`;
|
|
32
37
|
borderColorDefault: `var(--${string})`;
|
|
33
38
|
fontFamilySans: `var(--${string})`;
|
|
34
39
|
fontFamilyMono: `var(--${string})`;
|
package/dist/esm/density.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VinyasaTheme } from './themes/base';
|
|
2
2
|
export type Density = 'compact' | 'comfortable' | 'spacious';
|
|
3
|
-
type DensitySpacing = Pick<VinyasaTheme, 'space1' | 'space2' | 'space3' | 'space4' | 'space5' | 'space6'>;
|
|
3
|
+
type DensitySpacing = Pick<VinyasaTheme, 'space1' | 'space2' | 'space3' | 'space4' | 'space5' | 'space6' | 'space7' | 'space8'>;
|
|
4
4
|
export declare const resolveDensitySpacing: (density: Density) => DensitySpacing;
|
|
5
5
|
export {};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
export { type Brand, type BrandAccent, duskBrand, sunriseBrand, yellowBrand } from './brands';
|
|
1
2
|
export { themeContract } from './contract.css';
|
|
2
3
|
export { focusRingStyle } from './focusRing';
|
|
3
4
|
export { type VinyasaTheme } from './themes/base';
|
|
4
5
|
export { createTheme, lightHighContrastTheme, lightTheme } from './themes/light';
|
|
5
6
|
export { darkHighContrastTheme, darkTheme } from './themes/dark';
|
|
6
|
-
export { orangeHighContrastTheme, orangeTheme } from './themes/orange';
|
|
7
7
|
export { resolveBaseTheme, type ColorScheme, type Contrast } from './themes';
|
|
8
8
|
export { resolveDensitySpacing, type Density } from './density';
|
|
9
9
|
export { breakpoints, grid } from './layout';
|
|
10
10
|
export { useAssertVinyasaProvider } from './useAssertVinyasaProvider';
|
|
11
11
|
export { useThemedRef } from './useThemedRef';
|
|
12
|
-
export { VinyasaProvider, useVinyasaTheme, type VinyasaProviderProps } from './VinyasaProvider';
|
|
12
|
+
export { VinyasaProvider, useVinyasaTheme, type BrandName, type ThemeOverride, type VinyasaProviderProps, } from './VinyasaProvider';
|