@placeholderco/placeholder-ui 2.4.0 → 2.5.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/README.md
CHANGED
|
@@ -19,8 +19,7 @@ Peer dependency: `svelte ^5`.
|
|
|
19
19
|
|
|
20
20
|
## Quick start
|
|
21
21
|
|
|
22
|
-
Wrap your app in `AppShell` (it loads the base stylesheet
|
|
23
|
-
Bootstrap 5), then use components:
|
|
22
|
+
Wrap your app in `AppShell` (it loads the base stylesheet), then use components:
|
|
24
23
|
|
|
25
24
|
```svelte
|
|
26
25
|
<script lang="ts">
|
|
@@ -33,15 +32,11 @@ Bootstrap 5), then use components:
|
|
|
33
32
|
</AppShell>
|
|
34
33
|
```
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
`AppShell` and import the token stylesheet yourself:
|
|
35
|
+
Or skip `AppShell` and import the token stylesheet yourself:
|
|
38
36
|
|
|
39
37
|
```ts
|
|
40
38
|
import '@placeholderco/placeholder-ui/app.css';
|
|
41
39
|
```
|
|
42
|
-
|
|
43
|
-
The bundled Bootstrap is also available on its own as `@placeholderco/placeholder-ui/bootstrap.css`.
|
|
44
|
-
|
|
45
40
|
## Branding
|
|
46
41
|
|
|
47
42
|
Everything colour- and font-related resolves to `--ui-*` custom properties, so
|
package/dist/app.css
CHANGED
|
@@ -115,8 +115,7 @@ body {
|
|
|
115
115
|
font-family: var(--ui-font-family);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
/* Form controls do not inherit fonts by default; make them follow the UI font
|
|
119
|
-
even when Bootstrap's reboot is not loaded. */
|
|
118
|
+
/* Form controls do not inherit fonts by default; make them follow the UI font */
|
|
120
119
|
button,
|
|
121
120
|
input,
|
|
122
121
|
select,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
|
-
import '../
|
|
3
|
+
import '../styles.css';
|
|
4
4
|
import '../app.css';
|
|
5
5
|
|
|
6
6
|
export interface AppShellProps {
|
|
@@ -11,9 +11,4 @@
|
|
|
11
11
|
let { children }: AppShellProps = $props();
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<!--
|
|
15
|
-
AppShell loads the library's base stylesheet plus the bundled Bootstrap 5 build.
|
|
16
|
-
To use the library without Bootstrap, skip AppShell and import
|
|
17
|
-
`@placeholderco/placeholder-ui/app.css` directly in your root layout instead.
|
|
18
|
-
-->
|
|
19
14
|
{@render children?.()}
|
|
@@ -4,6 +4,38 @@
|
|
|
4
4
|
--gutter-y: 0
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
h1,.display-1 {
|
|
8
|
+
font-size: clamp(2.25rem, 4vw + 1rem, 3.9rem);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
h2,.display-2 {
|
|
12
|
+
font-size: clamp(1.85rem, 3vw + 0.85rem, 3.1rem);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h3,.display-3 {
|
|
16
|
+
font-size: clamp(1.5rem, 2.2vw + 0.75rem, 2.5rem);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
h4,.display-4 {
|
|
20
|
+
font-size: clamp(1.25rem, 1.5vw + 0.7rem, 2rem);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
h5,.display-5 {
|
|
24
|
+
font-size: clamp(1.1rem, 0.9vw + 0.7rem, 1.6rem);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h6,.display-6 {
|
|
28
|
+
font-size: clamp(1rem, 0.5vw + 0.75rem, 1.25rem);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h7,.display-7 {
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
h8,.display-8 {
|
|
36
|
+
font-size: 0.875rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
7
39
|
.text-black,
|
|
8
40
|
.text-black-50,
|
|
9
41
|
.text-body,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@placeholderco/placeholder-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "A modern, customizable Svelte 5 UI component library with comprehensive theming support. Re-brand it with a single config object.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Placeholderco",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"svelte": "./dist/index.js"
|
|
46
46
|
},
|
|
47
47
|
"./app.css": "./dist/app.css",
|
|
48
|
-
"./
|
|
48
|
+
"./styles.css": "./dist/styles.css"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@sveltejs/kit": "^2.26.0",
|