ada-ui 3.0.0 → 3.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/README.md CHANGED
@@ -4,16 +4,24 @@
4
4
 
5
5
  ## CDN
6
6
 
7
- ~~~
8
- https://cdn.jsdelivr.net/gh/tklepzig/Ada@version/css/ada.min.css
9
- ~~~
7
+ https://cdn.jsdelivr.net/gh/tklepzig/Ada@version/css/ada.min.css
8
+
10
9
  Replace `version` with the version of your desired release, see https://github.com/tklepzig/Ada/releases (e.g. `2.9.0`)
10
+
11
+ > Attention: Beginning with version 3.0, the filenames don't contain `min` any longer. So the URL should be
12
+ >
13
+ > https://cdn.jsdelivr.net/gh/tklepzig/Ada@3.0.0/css/ada.css
14
+
11
15
  ## Install
12
16
 
13
- ~~~
14
- npm install ada-ui --save
15
- ~~~
17
+ # Using npm
18
+ npm install ada-ui --save
19
+
20
+ # Using yarn
21
+ yarn add ada-ui
22
+
23
+ ## Select a Theme
24
+
25
+ Beginning with version 3.0.0, you can choose between different themes. When using the CSS, ensure to include the correct theme file before the main one, e.g.:
16
26
 
17
- ~~~
18
- yarn add ada-ui
19
- ~~~
27
+ https://cdn.jsdelivr.net/gh/tklepzig/Ada@3.0.0/css/ada.blue.css
package/css/ada.green.css CHANGED
@@ -1 +1 @@
1
- .warn,.accent,:root{--l-dark: calc(var(--l) - 16%);--l-light: calc(var(--l) + 38%);--bg: hsl(var(--h), var(--s), var(--l-dark));--fg: hsl(var(--h-fg), var(--s-fg), var(--l-fg));--fg-alpha60: hsla(var(--h-fg), var(--s-fg), var(--l-fg), 0.6);--fg-alpha80: hsla(var(--h-fg), var(--s-fg), var(--l-fg), 0.8);--default: hsl(var(--h), var(--s), var(--l));--default-alpha10: hsla(var(--h), var(--s), var(--l), 0.1);--default-alpha40: hsla(var(--h), var(--s), var(--l), 0.4);--light: hsl(var(--h), var(--s), var(--l-light));--light-alpha40: hsla(var(--h), var(--s), var(--l-light), 0.4);--light-alpha70: hsla(var(--h), var(--s), var(--l-light), 0.7)}:root{--h: 132;--s: 92%;--l: 22%;--h-fg: var(--h);--s-fg: 100%;--l-fg: 89%}.accent{--h: 64;--s: 87%;--l: 25%;--h-fg: var(--h);--s-fg: 100%;--l-fg: 89%}.warn{--h: 0;--s: 75%;--l: 29%;--h-fg: var(--h);--s-fg: 100%;--l-fg: 89%}
1
+ .warn,.accent,:root{--l-dark: calc(var(--l) - 16%);--l-light: calc(var(--l) + 38%);--bg: hsl(var(--h), var(--s), var(--l-dark));--fg: hsl(var(--h-fg), var(--s-fg), var(--l-fg));--fg-alpha60: hsla(var(--h-fg), var(--s-fg), var(--l-fg), 0.6);--fg-alpha80: hsla(var(--h-fg), var(--s-fg), var(--l-fg), 0.8);--default: hsl(var(--h), var(--s), var(--l));--default-alpha10: hsla(var(--h), var(--s), var(--l), 0.1);--default-alpha40: hsla(var(--h), var(--s), var(--l), 0.4);--light: hsl(var(--h), var(--s), var(--l-light));--light-alpha40: hsla(var(--h), var(--s), var(--l-light), 0.4);--light-alpha70: hsla(var(--h), var(--s), var(--l-light), 0.7)}:root{--h: 132;--s: 92%;--l: 21%;--h-fg: var(--h);--s-fg: 100%;--l-fg: 89%}.accent{--h: 24;--s: 91%;--l: 34%;--h-fg: var(--h);--s-fg: 100%;--l-fg: 89%}.warn{--h: 0;--s: 75%;--l: 29%;--h-fg: var(--h);--s-fg: 100%;--l-fg: 89%}
package/index.html CHANGED
@@ -10,7 +10,7 @@
10
10
  name="viewport"
11
11
  content="user-scalable=yes, initial-scale=1.0, maximum-scale=10.0, width=device-width"
12
12
  />
13
- <link rel="stylesheet" href="css/ada.blue.css" />
13
+ <link rel="stylesheet" href="css/ada.green.css" />
14
14
  <link rel="stylesheet" href="css/ada.css" />
15
15
  <link
16
16
  href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600"
@@ -114,9 +114,9 @@
114
114
  <article>Inset Tile</article>
115
115
  <footer>Footer</footer>
116
116
  </div>
117
- <div class="tile">
117
+ <div class="tile accent">
118
118
  <header></header>
119
- <article>Tile</article>
119
+ <article>Tile Accent</article>
120
120
  <footer></footer>
121
121
  </div>
122
122
  <div class="tile">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ada-ui",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "scripts": {
5
5
  "dev": "sass scss:css --watch",
6
6
  "build": "rm -rf css && sass scss:css -s compressed --no-source-map"
@@ -5,7 +5,7 @@
5
5
 
6
6
  --h: 132;
7
7
  --s: 92%;
8
- --l: 22%;
8
+ --l: 21%;
9
9
 
10
10
  --h-fg: var(--h);
11
11
  --s-fg: 100%;
@@ -15,22 +15,9 @@
15
15
  .accent {
16
16
  @extend %colourShades;
17
17
 
18
- //TODO which accent color???
19
-
20
- //another green tone
21
- --h: 64;
22
- --s: 87%;
23
- --l: 25%;
24
-
25
- //orange
26
- //--h: 32;
27
- //--s: 85%;
28
- //--l: 34%;
29
-
30
- //blue
31
- //--h: 212;
32
- //--s: 50%;
33
- //--l: 19%;
18
+ --h: 24;
19
+ --s: 91%;
20
+ --l: 34%;
34
21
 
35
22
  --h-fg: var(--h);
36
23
  --s-fg: 100%;