File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ /* /index.html 200
2
+
Original file line number Diff line number Diff line change 16
16
>
17
17
<div class =" flex items-center" >
18
18
<span
19
- :class =" `bg-${ filter.color}` "
19
+ :class =" filter.color.bg "
20
20
class =" inline-block w-2 h-2 mr-2 rounded-full" /> {{ filter.label }}
21
21
</div >
22
22
<span
23
- :class =" filter.active ? `text-${ filter.color}` : 'text-brand-graydark'"
23
+ :class =" filter.active ? filter.color.text : 'text-brand-graydark'"
24
24
class =" font-bold"
25
25
>
26
26
{{ filter.amount }}
@@ -43,10 +43,10 @@ const LABELS = {
43
43
}
44
44
45
45
const COLORS = {
46
- all: ' brand-info' ,
47
- issue: ' brand-danger' ,
48
- idea: ' brand-warning' ,
49
- other: ' brand-graydark'
46
+ all: { text : ' text- brand-info' , bg : ' bg-brand-info ' } ,
47
+ issue: { text : ' text- brand-danger' , bg : ' bg-brand-danger ' } ,
48
+ idea: { text : ' text- brand-warning' , bg : ' bg-brand-warning ' } ,
49
+ other: { text : ' text- brand-graydark' , bg : ' bg-brand-graydark ' }
50
50
}
51
51
52
52
function applyFiltersStructure (summary ) {
Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ const colors = require('tailwindcss/colors')
2
2
const palette = require ( './palette' )
3
3
4
4
module . exports = {
5
- purge : [ ] ,
5
+ purge : [
6
+ './src/**/*.html' ,
7
+ './src/**/*.vue' ,
8
+ './src/**/*.jsx'
9
+ ] ,
6
10
presets : [ ] ,
7
11
darkMode : false , // or 'media' or 'class'
8
12
theme : {
You can’t perform that action at this time.
0 commit comments