sdga-ui 1.0.1 → 1.0.2
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/.github/workflows/publish.yml +33 -0
- package/README.md +5 -5
- package/css/dga-ui.css +27286 -27286
- package/package.json +16 -6
- package/theme/customizations/_cards.scss +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-and-publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
id-token: write # Required for OIDC
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Node.js
|
|
20
|
+
uses: actions/setup-node@v4
|
|
21
|
+
with:
|
|
22
|
+
node-version: 20
|
|
23
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
24
|
+
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: npm install
|
|
27
|
+
|
|
28
|
+
- name: Build CSS
|
|
29
|
+
run: npm run build-css
|
|
30
|
+
|
|
31
|
+
# Trusted Publishing doesn't need NODE_AUTH_TOKEN
|
|
32
|
+
- name: Publish package to npm
|
|
33
|
+
run: npm publish --access public
|
package/README.md
CHANGED
|
@@ -24,13 +24,13 @@ This package helps you apply a clean, structured, and authoritative look across
|
|
|
24
24
|
Install via npm:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npm install
|
|
27
|
+
npm install sdga-ui
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Or with yarn:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
yarn add
|
|
33
|
+
yarn add sdga-ui
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
---
|
|
@@ -42,13 +42,13 @@ yarn add dga-ui
|
|
|
42
42
|
Include the compiled CSS file in your HTML:
|
|
43
43
|
|
|
44
44
|
```html
|
|
45
|
-
<link rel="stylesheet" href="node_modules/
|
|
45
|
+
<link rel="stylesheet" href="node_modules/sdga-ui/css/dga-ui.css">
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
Or import it in your JavaScript/CSS:
|
|
49
49
|
|
|
50
50
|
```css
|
|
51
|
-
@import "
|
|
51
|
+
@import "sdga-ui/css/dga-ui.css";
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
### **Using SCSS Source Files**
|
|
@@ -56,7 +56,7 @@ Or import it in your JavaScript/CSS:
|
|
|
56
56
|
Import the theme in your SCSS file:
|
|
57
57
|
|
|
58
58
|
```scss
|
|
59
|
-
@import "
|
|
59
|
+
@import "sdga-ui/theme/dga-ui";
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
All Bootstrap components automatically adopt the DGA UI theme.
|