-
Notifications
You must be signed in to change notification settings - Fork 2
/
twbase.libraries.yml
51 lines (47 loc) · 1002 Bytes
/
twbase.libraries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
global-styling:
version: 1.x
header: true
css:
theme:
css/styles.css: {}
custom-styling:
version: 1.x
header: true
css:
theme:
css/twbase-gradient.css: {}
global-scripts:
version: 1.x
js:
js/twbase.js: { defer: true }
js/app.js: {
attributes: { defer: true }
}
dependencies:
- core/jquery
- core/drupal
- core/once
## Dark Mode toggle
## On page load or when changing themes, best to add in `head` to avoid FOUC
## FOUC: Flash Of Unstyled Content
darkmode-switcher:
header: true
version: 1.x
js:
js/themeSwitcher.js: {
attributes: { async: true }
}
alpinejs:
header: true
remote: https://github.com/alpinejs/alpine
version: 3.12.0
license:
name: MIT
url: https://github.com/alpinejs/alpine/blob/main/LICENSE.md
gpl-compatible: true
js:
https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js: {
type: external,
minified: true,
attributes: { defer: true }
}