create-application-template 1.2.4 → 1.3.1
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 +1 -1
- package/ccrate/src/styles/theme.ts +10 -1
- package/package.json +2 -1
- package/src/styles/App.styled.ts +6 -2
- package/src/styles/theme.ts +10 -1
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ if you proceed with styled-components:
|
|
|
72
72
|
- that's it!
|
|
73
73
|
|
|
74
74
|
if you prefer CSS:
|
|
75
|
-
- alter `.stylintrc.js` and `.husky/pre-
|
|
75
|
+
- alter `.stylintrc.js` and `.husky/pre-commit` per the files' notes
|
|
76
76
|
- remove `.ts` files from `/src/styles/` or "recreate" them in `.css`
|
|
77
77
|
|
|
78
78
|
## environmental settings
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { transparentize } from 'polished'
|
|
2
|
+
|
|
1
3
|
const theme = {
|
|
2
4
|
font: 'exo2',
|
|
3
5
|
colors: {
|
|
@@ -5,7 +7,14 @@ const theme = {
|
|
|
5
7
|
background: '#182f37',
|
|
6
8
|
primary: '#e2b432',
|
|
7
9
|
},
|
|
8
|
-
get link() {
|
|
10
|
+
get link() {
|
|
11
|
+
const link = this.palette.primary
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
regular: transparentize(0.4, link),
|
|
15
|
+
hover: transparentize(0.6, link),
|
|
16
|
+
}
|
|
17
|
+
},
|
|
9
18
|
},
|
|
10
19
|
}
|
|
11
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-application-template",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "provides a configured application template for you to build upon",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"concurrently": "8.2.2",
|
|
49
49
|
"dotenv-flow": "4.1.0",
|
|
50
50
|
"husky": "9.0.11",
|
|
51
|
+
"polished": "4.3.1",
|
|
51
52
|
"react": "18.3.1",
|
|
52
53
|
"react-dom": "18.3.1",
|
|
53
54
|
"styled-components": "6.1.12",
|
package/src/styles/App.styled.ts
CHANGED
|
@@ -22,6 +22,10 @@ export const StyledSection = styled.section`
|
|
|
22
22
|
`
|
|
23
23
|
|
|
24
24
|
export const StyledLink = styled.a(({ theme }) => `
|
|
25
|
-
color: ${theme.colors.
|
|
26
|
-
|
|
25
|
+
color: ${theme.colors.link.regular};
|
|
26
|
+
transition: 0.3s;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
color: ${theme.colors.link.hover};
|
|
30
|
+
}
|
|
27
31
|
`)
|
package/src/styles/theme.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { transparentize } from 'polished'
|
|
2
|
+
|
|
1
3
|
const theme = {
|
|
2
4
|
font: 'exo2',
|
|
3
5
|
colors: {
|
|
@@ -5,7 +7,14 @@ const theme = {
|
|
|
5
7
|
background: '#454145',
|
|
6
8
|
primary: '#cec2eb',
|
|
7
9
|
},
|
|
8
|
-
get link() {
|
|
10
|
+
get link() {
|
|
11
|
+
const link = this.palette.primary
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
regular: transparentize(0.4, link),
|
|
15
|
+
hover: transparentize(0.6, link),
|
|
16
|
+
}
|
|
17
|
+
},
|
|
9
18
|
},
|
|
10
19
|
}
|
|
11
20
|
|