@atls-ui/theme 0.2.0 → 0.4.0
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/CHANGELOG.md +25 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +3 -0
- package/dist/tokens/borders/borders.d.ts +3 -0
- package/dist/tokens/borders/borders.js +32 -0
- package/dist/tokens/borders/constants.d.ts +10 -0
- package/dist/tokens/borders/constants.js +10 -0
- package/dist/tokens/borders/index.d.ts +4 -0
- package/dist/tokens/borders/index.js +3 -0
- package/dist/tokens/borders/interfaces.d.ts +19 -0
- package/dist/tokens/borders/interfaces.js +1 -0
- package/dist/tokens/borders/utils/createBorder.d.ts +3 -0
- package/dist/tokens/borders/utils/createBorder.js +1 -0
- package/dist/tokens/borders/utils/index.d.ts +1 -0
- package/dist/tokens/borders/utils/index.js +1 -0
- package/dist/tokens/index.d.ts +2 -1
- package/dist/tokens/index.js +2 -1
- package/dist/tokens/{radii.d.ts → layout/radii.d.ts} +8 -2
- package/dist/tokens/{radii.js → layout/radii.js} +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
# [0.4.0](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.3.0...@atls-ui/theme@0.4.0) (2026-08-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* **theme:** expose web borders ([6e0a7e8](https://github.com/atls/hyperion/commit/6e0a7e86272c8c36f819853ef3f9fd1ffbb6d000))
|
|
10
|
+
* **theme:** web borders tokens ([6422b3d](https://github.com/atls/hyperion/commit/6422b3d460623a752f14e48f312c3381a8b81ece))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# [0.3.0](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.2.0...@atls-ui/theme@0.3.0) (2026-08-13)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* **theme:** radii web ([c411fb8](https://github.com/atls/hyperion/commit/c411fb8f88bda5ff21bd14216d78575306cc4c7e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
3
28
|
# [0.2.0](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.1.0...@atls-ui/theme@0.2.0) (2026-08-13)
|
|
4
29
|
|
|
5
30
|
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { BordersTokens } from './tokens/index.js';
|
|
1
2
|
import type { Colors } from './tokens/index.js';
|
|
2
3
|
import type { TypographyTokens } from './tokens/index.js';
|
|
3
4
|
export interface Theme {
|
|
5
|
+
borders: BordersTokens;
|
|
4
6
|
colors: Colors;
|
|
5
7
|
typography: TypographyTokens;
|
|
6
8
|
}
|
package/dist/theme.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { borders } from './tokens/index.js';
|
|
1
2
|
import { darkColors } from './tokens/index.js';
|
|
2
3
|
import { lightColors } from './tokens/index.js';
|
|
3
4
|
import { typography } from './tokens/index.js';
|
|
4
5
|
export const lightTheme = {
|
|
6
|
+
borders: borders(lightColors),
|
|
5
7
|
colors: lightColors,
|
|
6
8
|
typography,
|
|
7
9
|
};
|
|
8
10
|
export const darkTheme = {
|
|
11
|
+
borders: borders(darkColors),
|
|
9
12
|
colors: darkColors,
|
|
10
13
|
typography,
|
|
11
14
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { borderStyles } from './constants.js';
|
|
2
|
+
import { borderWidths } from './constants.js';
|
|
3
|
+
import { createBorder } from './utils/index.js';
|
|
4
|
+
export const borders = (colors) => ({
|
|
5
|
+
neutral: {
|
|
6
|
+
default: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.subtle),
|
|
7
|
+
hover: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.muted),
|
|
8
|
+
pressed: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.base),
|
|
9
|
+
focused: createBorder(borderWidths.sm, borderStyles.solid, colors.action.base),
|
|
10
|
+
disabled: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.soft),
|
|
11
|
+
},
|
|
12
|
+
action: {
|
|
13
|
+
default: createBorder(borderWidths.sm, borderStyles.solid, colors.action.base),
|
|
14
|
+
hover: createBorder(borderWidths.sm, borderStyles.solid, colors.action.hover),
|
|
15
|
+
pressed: createBorder(borderWidths.sm, borderStyles.solid, colors.action.pressed),
|
|
16
|
+
focused: createBorder(borderWidths.md, borderStyles.solid, colors.action.base),
|
|
17
|
+
disabled: createBorder(borderWidths.sm, borderStyles.solid, colors.action.disabled),
|
|
18
|
+
},
|
|
19
|
+
danger: {
|
|
20
|
+
default: createBorder(borderWidths.sm, borderStyles.solid, colors.status.error),
|
|
21
|
+
hover: createBorder(borderWidths.sm, borderStyles.solid, colors.status.error),
|
|
22
|
+
pressed: createBorder(borderWidths.sm, borderStyles.solid, colors.status.error),
|
|
23
|
+
focused: createBorder(borderWidths.md, borderStyles.solid, colors.status.error),
|
|
24
|
+
disabled: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.soft),
|
|
25
|
+
},
|
|
26
|
+
dropzone: {
|
|
27
|
+
default: createBorder(borderWidths.sm, borderStyles.dashed, colors.surface.muted),
|
|
28
|
+
hover: createBorder(borderWidths.sm, borderStyles.dashed, colors.action.hover),
|
|
29
|
+
focused: createBorder(borderWidths.md, borderStyles.dashed, colors.action.base),
|
|
30
|
+
disabled: createBorder(borderWidths.sm, borderStyles.dashed, colors.surface.soft),
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { borderStyles } from './constants.js';
|
|
2
|
+
import type { borderWidths } from './constants.js';
|
|
3
|
+
export type BorderStyle = (typeof borderStyles)[keyof typeof borderStyles];
|
|
4
|
+
export type BorderWidth = (typeof borderWidths)[keyof typeof borderWidths];
|
|
5
|
+
export interface BorderStates {
|
|
6
|
+
default: string;
|
|
7
|
+
hover: string;
|
|
8
|
+
focused: string;
|
|
9
|
+
disabled: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PressableBorderStates extends BorderStates {
|
|
12
|
+
pressed: string;
|
|
13
|
+
}
|
|
14
|
+
export interface BordersTokens {
|
|
15
|
+
neutral: PressableBorderStates;
|
|
16
|
+
action: PressableBorderStates;
|
|
17
|
+
danger: PressableBorderStates;
|
|
18
|
+
dropzone: BorderStates;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const createBorder = (width, style, color) => `${width} ${style} ${color}`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createBorder.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./createBorder.js";
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from './animations.js';
|
|
2
|
+
export * from './borders/index.js';
|
|
2
3
|
export * from './colors/index.js';
|
|
3
4
|
export * from './layout/spaces.js';
|
|
4
5
|
export * from './opacities.js';
|
|
5
|
-
export * from './radii.js';
|
|
6
|
+
export * from './layout/radii.js';
|
|
6
7
|
export * from './space.js';
|
|
7
8
|
export * from './typography/index.js';
|
|
8
9
|
export * from './z-index.js';
|
package/dist/tokens/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from "./animations.js";
|
|
2
|
+
export * from "./borders/index.js";
|
|
2
3
|
export * from "./colors/index.js";
|
|
3
4
|
export * from "./layout/spaces.js";
|
|
4
5
|
export * from "./opacities.js";
|
|
5
|
-
export * from "./radii.js";
|
|
6
|
+
export * from "./layout/radii.js";
|
|
6
7
|
export * from "./space.js";
|
|
7
8
|
export * from "./typography/index.js";
|
|
8
9
|
export * from "./z-index.js";
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export declare const radii: {
|
|
2
|
-
readonly none: "
|
|
3
|
-
readonly
|
|
2
|
+
readonly none: "0";
|
|
3
|
+
readonly xs3: "2px";
|
|
4
|
+
readonly xs2: "4px";
|
|
5
|
+
readonly xs: "8px";
|
|
6
|
+
readonly sm: "12px";
|
|
7
|
+
readonly md: "16px";
|
|
8
|
+
readonly lg: "24px";
|
|
9
|
+
readonly full: "9999px";
|
|
4
10
|
readonly f1: "1px";
|
|
5
11
|
readonly f2: "2px";
|
|
6
12
|
readonly f3: "3px";
|