@autofleet/theme 0.1.2 → 0.1.3
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/{src/colors → colors}/atomic-colors.d.ts +1 -1
- package/{src/colors → colors}/index.d.ts +2 -2
- package/{src/colors → colors}/tokens/color-token-mapping.d.ts +3 -3
- package/{src/index.d.ts → index.d.ts} +2 -2
- package/index.js +1396 -0
- package/index.js.map +1 -0
- package/package.json +9 -4
- package/{src/shadow → shadow}/index.d.ts +1 -1
- package/README.md +0 -9
- package/src/colors/atomic-colors.js +0 -150
- package/src/colors/atomic-colors.js.map +0 -1
- package/src/colors/index.js +0 -12
- package/src/colors/index.js.map +0 -1
- package/src/colors/tokens/color-token-mapping.js +0 -885
- package/src/colors/tokens/color-token-mapping.js.map +0 -1
- package/src/colors/tokens/color-tokens.js +0 -97
- package/src/colors/tokens/color-tokens.js.map +0 -1
- package/src/colors-utils.js +0 -104
- package/src/colors-utils.js.map +0 -1
- package/src/const.js +0 -5
- package/src/const.js.map +0 -1
- package/src/fonts/atomic-fonts.js +0 -75
- package/src/fonts/atomic-fonts.js.map +0 -1
- package/src/fonts/index.js +0 -22
- package/src/fonts/index.js.map +0 -1
- package/src/index.js +0 -16
- package/src/index.js.map +0 -1
- package/src/shadow/index.js +0 -33
- package/src/shadow/index.js.map +0 -1
- package/src/spacing/border-radius.js +0 -9
- package/src/spacing/border-radius.js.map +0 -1
- package/src/spacing/index.js +0 -7
- package/src/spacing/index.js.map +0 -1
- package/src/spacing/spacing.js +0 -16
- package/src/spacing/spacing.js.map +0 -1
- /package/{src/colors → colors}/tokens/color-tokens.d.ts +0 -0
- /package/{src/colors-utils.d.ts → colors-utils.d.ts} +0 -0
- /package/{src/const.d.ts → const.d.ts} +0 -0
- /package/{src/fonts → fonts}/atomic-fonts.d.ts +0 -0
- /package/{src/fonts → fonts}/index.d.ts +0 -0
- /package/{src/spacing → spacing}/border-radius.d.ts +0 -0
- /package/{src/spacing → spacing}/index.d.ts +0 -0
- /package/{src/spacing → spacing}/spacing.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { RGBColor } from '../colors-utils';
|
|
2
|
+
import { LABEL_OPTIONS } from '../const';
|
|
3
3
|
import { COLOR_TOKEN_MAP } from './tokens/color-token-mapping';
|
|
4
4
|
export interface ThemeColorOptions {
|
|
5
5
|
lightMode: 'dark' | 'light';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { LABEL_OPTIONS } from '../../const';
|
|
2
|
+
import { ATOMIC_COLORS } from '../atomic-colors';
|
|
3
|
+
import { COLOR_TOKENS } from './color-tokens';
|
|
4
4
|
export type ColorTokenMap = Record<(typeof COLOR_TOKENS)[number], Record<(typeof LABEL_OPTIONS)[keyof typeof LABEL_OPTIONS], {
|
|
5
5
|
light: keyof typeof ATOMIC_COLORS;
|
|
6
6
|
dark: keyof typeof ATOMIC_COLORS;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RGBColor } from './colors-utils';
|
|
2
2
|
import { LABEL_OPTIONS } from './const';
|
|
3
3
|
interface IThemeProps {
|
|
4
4
|
isDarkMode: boolean;
|
|
@@ -6,7 +6,7 @@ interface IThemeProps {
|
|
|
6
6
|
primaryColor?: RGBColor;
|
|
7
7
|
}
|
|
8
8
|
export declare const loadThemeStyles: ({ isDarkMode, label, primaryColor, }: IThemeProps) => {
|
|
9
|
-
colors: import(
|
|
9
|
+
colors: import('./colors').ColorTokenResponse;
|
|
10
10
|
fonts: {
|
|
11
11
|
desktop: {
|
|
12
12
|
largeTitle: "\n font-family: Montserrat, sans-serif !important;\n font-size: 48px;\n font-style: normal;\n font-weight: 700;\n line-height: 60px;";
|