@rbxts-ui/theme 1.1.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/README.md +18 -0
- package/dist/index.d.ts +46 -0
- package/dist/init.luau +63 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @rbxts-ui/theme
|
|
2
|
+
|
|
3
|
+
Theme configuration for roblox-ts UI components.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @rbxts-ui/theme
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { defaultTheme, type Theme } from "@rbxts-ui/theme";
|
|
15
|
+
|
|
16
|
+
const theme = defaultTheme;
|
|
17
|
+
```
|
|
18
|
+
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SpringOptions } from "@rbxts/ripple";
|
|
2
|
+
export interface Theme {
|
|
3
|
+
palette: {
|
|
4
|
+
white: Color3;
|
|
5
|
+
offwhite: Color3;
|
|
6
|
+
black: Color3;
|
|
7
|
+
darkgray: Color3;
|
|
8
|
+
crust: Color3;
|
|
9
|
+
overlay0: Color3;
|
|
10
|
+
disabled: Color3;
|
|
11
|
+
blue: Color3;
|
|
12
|
+
green: Color3;
|
|
13
|
+
red: Color3;
|
|
14
|
+
yellow: Color3;
|
|
15
|
+
blueishColor: Color3;
|
|
16
|
+
text: Color3;
|
|
17
|
+
surface1: Color3;
|
|
18
|
+
lightblue: Color3;
|
|
19
|
+
surface2: Color3;
|
|
20
|
+
macRed: Color3;
|
|
21
|
+
macYellow: Color3;
|
|
22
|
+
macGreen: Color3;
|
|
23
|
+
};
|
|
24
|
+
fonts: {
|
|
25
|
+
inter: {
|
|
26
|
+
regular: Font;
|
|
27
|
+
medium: Font;
|
|
28
|
+
bold: Font;
|
|
29
|
+
};
|
|
30
|
+
roboto: {
|
|
31
|
+
light: Font;
|
|
32
|
+
regular: Font;
|
|
33
|
+
medium: Font;
|
|
34
|
+
bold: Font;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
springs: {
|
|
38
|
+
slow: SpringOptions;
|
|
39
|
+
bubbly: SpringOptions;
|
|
40
|
+
responsive: SpringOptions;
|
|
41
|
+
gentle: SpringOptions;
|
|
42
|
+
world: SpringOptions;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare const defaultTheme: Theme;
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/init.luau
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local TS = _G[script]
|
|
3
|
+
local config = TS.import(script, TS.getModule(script, "@rbxts", "ripple").src).config
|
|
4
|
+
local defaultPalette = {
|
|
5
|
+
white = Color3.fromRGB(255, 255, 255),
|
|
6
|
+
offwhite = Color3.fromRGB(234, 238, 253),
|
|
7
|
+
black = Color3.fromRGB(0, 0, 0),
|
|
8
|
+
darkgray = Color3.fromRGB(69, 69, 79),
|
|
9
|
+
crust = Color3.fromRGB(17, 17, 27),
|
|
10
|
+
overlay0 = Color3.fromRGB(108, 112, 134),
|
|
11
|
+
disabled = Color3.fromRGB(108, 112, 134),
|
|
12
|
+
blue = Color3.fromRGB(137, 180, 250),
|
|
13
|
+
green = Color3.fromRGB(166, 227, 161),
|
|
14
|
+
red = Color3.fromRGB(243, 139, 168),
|
|
15
|
+
yellow = Color3.fromRGB(249, 226, 175),
|
|
16
|
+
blueishColor = Color3.fromRGB(0, 204, 255),
|
|
17
|
+
text = Color3.fromRGB(205, 214, 244),
|
|
18
|
+
surface1 = Color3.fromRGB(69, 71, 90),
|
|
19
|
+
lightblue = Color3.fromRGB(215, 223, 255),
|
|
20
|
+
surface2 = Color3.fromRGB(88, 91, 112),
|
|
21
|
+
macRed = Color3.fromRGB(255, 96, 92),
|
|
22
|
+
macYellow = Color3.fromRGB(255, 189, 68),
|
|
23
|
+
macGreen = Color3.fromRGB(0, 202, 78),
|
|
24
|
+
}
|
|
25
|
+
local defaultFonts = {
|
|
26
|
+
inter = {
|
|
27
|
+
regular = Font.new("rbxassetid://12187365364"),
|
|
28
|
+
medium = Font.new("rbxassetid://12187365364", Enum.FontWeight.Medium),
|
|
29
|
+
bold = Font.new("rbxassetid://12187365364", Enum.FontWeight.Bold),
|
|
30
|
+
},
|
|
31
|
+
roboto = {
|
|
32
|
+
light = Font.fromName("Roboto", Enum.FontWeight.Light),
|
|
33
|
+
regular = Font.fromName("Roboto", Enum.FontWeight.Regular),
|
|
34
|
+
medium = Font.fromName("Roboto", Enum.FontWeight.Medium),
|
|
35
|
+
bold = Font.fromName("Roboto", Enum.FontWeight.Bold),
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
local _object = table.clone(config.spring)
|
|
39
|
+
setmetatable(_object, nil)
|
|
40
|
+
_object.bubbly = {
|
|
41
|
+
tension = 400,
|
|
42
|
+
friction = 14,
|
|
43
|
+
}
|
|
44
|
+
_object.responsive = {
|
|
45
|
+
tension = 400,
|
|
46
|
+
}
|
|
47
|
+
_object.gentle = {
|
|
48
|
+
tension = 250,
|
|
49
|
+
friction = 30,
|
|
50
|
+
}
|
|
51
|
+
_object.world = {
|
|
52
|
+
tension = 180,
|
|
53
|
+
friction = 30,
|
|
54
|
+
}
|
|
55
|
+
local defaultSprings = _object
|
|
56
|
+
local defaultTheme = {
|
|
57
|
+
palette = defaultPalette,
|
|
58
|
+
fonts = defaultFonts,
|
|
59
|
+
springs = defaultSprings,
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
defaultTheme = defaultTheme,
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/.pnpm/@rbxts+ripple@0.9.3/node_modules/@rbxts/ripple/src/index.d.ts","../src/index.ts","../../../node_modules/.pnpm/@rbxts+types@1.0.896/node_modules/@rbxts/types/include/generated/enums.d.ts","../../../node_modules/.pnpm/@rbxts+types@1.0.896/node_modules/@rbxts/types/include/generated/None.d.ts","../../../node_modules/.pnpm/@rbxts+types@1.0.896/node_modules/@rbxts/types/include/lua.d.ts","../../../node_modules/.pnpm/@rbxts+types@1.0.896/node_modules/@rbxts/types/include/macro_math.d.ts","../../../node_modules/.pnpm/@rbxts+types@1.0.896/node_modules/@rbxts/types/include/roblox.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/Array.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/callMacros.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/Iterable.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/Map.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/Promise.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/Set.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/String.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/Symbol.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/typeUtils.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/eslintIgnore.d.ts","../../../node_modules/.pnpm/@rbxts+compiler-types@3.0.0-types.0/node_modules/@rbxts/compiler-types/types/core.d.ts"],"fileInfos":[{"version":"e73fa51bae8d56d020872d61c01cf385b4f79633d1a41da05202e6a7f0384756","signature":false},{"version":"febd682dd75387d796ae37fe51b6e1913361c9ba1579bc555c2d11a1483680d9","signature":false},{"version":"1f3cf1b74a094386e33cd8ecce7176b285ca9b83fbc619f8544396b225e4fe5a","signature":false,"affectsGlobalScope":true},{"version":"b716c802ba27271e22a3912b94938ea7c5bfa0682aa6d7e2785277ea94b4af0e","signature":false,"affectsGlobalScope":true},{"version":"906abfeda44b050261b28ef1202799562dbf04817e2c96604190c5e01be745c6","signature":false,"affectsGlobalScope":true},{"version":"5b085ee9c23bd80318692ccc376f8af00cd6111b7a77238c27b595e3a7c4199a","signature":false,"affectsGlobalScope":true},{"version":"6308d83e703435596164139c9fda683c700ab2b2215bb6673e82f2d1d168fed9","signature":false,"affectsGlobalScope":true},{"version":"6826347cbacd3a749bdc7aab01f6e1ac2f16d62bdb46902a0c77c742bf42c619","signature":false,"affectsGlobalScope":true},{"version":"7c76ee8d0688477186ff292b7178fbd7b123c9bc385c7f0ac43742c8cfbcda7b","signature":false,"affectsGlobalScope":true},{"version":"d912c5d11ede33cefb967dc4886ac08cae34192d1a27f12f52201ea593bdf27d","signature":false,"affectsGlobalScope":true},{"version":"22bc177f25b0bff44aaa9a3428bb208088a764d38e18623ef878cc7cc72d07ee","signature":false,"affectsGlobalScope":true},{"version":"a95f106856dbc5289da510b0e24a633f9a2a2d0cb6c60ad93947efa13fcdf566","signature":false,"affectsGlobalScope":true},{"version":"346bca4a6e2c0ec0e4cc65a2f35ec773268d74288f83830e594ca983f473677c","signature":false,"affectsGlobalScope":true},{"version":"3501c467f99e26c1998f994bf5aa9673c7f9584bed3203dc6b3cd63596db3874","signature":false,"affectsGlobalScope":true},{"version":"28010932b8959e9c72e2d049f5526b8574b607ad615bdaa12c37dcdb789030d2","signature":false,"affectsGlobalScope":true},{"version":"adec607f45293974b4b7d6beb09f18cedc138bf788808918bc20c05a3649c45b","signature":false,"affectsGlobalScope":true},{"version":"70ab04fb9d57ca14cab8efcf963f48a18d4617f029afdbfd504777819415c3c9","signature":false,"affectsGlobalScope":true},{"version":"3a3c41569b2ef6dd6bb29b55a166da966ca7147ccfc1d93660bda725e1c14e48","signature":false,"affectsGlobalScope":true}],"root":[2],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"experimentalDecorators":true,"jsx":2,"module":1,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"fileIdsList":[[7],[7,8,9,10,11,12,13,14,15,16,17],[3,7],[4,18],[3,4,5,6,18],[1]],"referencedMap":[[8,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[9,1],[18,2],[17,1],[16,1],[4,3],[3,1],[5,4],[7,5],[2,6]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]},"version":"5.5.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rbxts-ui/theme",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Theme configuration for roblox-ts UI components",
|
|
5
|
+
"main": "dist/init.lua",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"readme": "README.md",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/**/*",
|
|
10
|
+
"default.project.json"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"roblox",
|
|
14
|
+
"roblox-ts",
|
|
15
|
+
"ui",
|
|
16
|
+
"theme"
|
|
17
|
+
],
|
|
18
|
+
"author": "",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@rbxts/types": "^1.0.859",
|
|
22
|
+
"@rbxts/ripple": "^0.9.3"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@rbxts/types": "^1.0.859",
|
|
26
|
+
"@rbxts/compiler-types": "3.0.0-types.0",
|
|
27
|
+
"roblox-ts": "^3.0.0",
|
|
28
|
+
"typescript": "^5.3.3",
|
|
29
|
+
"@rbxts/ripple": "^0.9.3"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "rbxtsc",
|
|
36
|
+
"dev": "rbxtsc -w"
|
|
37
|
+
}
|
|
38
|
+
}
|