@atls-ui/theme 0.3.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 +13 -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 +1 -0
- package/dist/tokens/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
3
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)
|
|
4
17
|
|
|
5
18
|
|
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
package/dist/tokens/index.js
CHANGED