Skip to content

Commit b6c852b

Browse files
committed
Rename 'shlink-color' to 'shlink-brand', as its implicit that it is a color
1 parent 569dcda commit b6c852b

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ docker-compose.override.yml
55
/build/
66
npm-debug.log*
77
home
8+
tsconfig.tsbuildinfo

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7-
## [2.1.0] - 2023-03-03
7+
## [2.1.0] - 2023-03-05
88
### Added
99
* *Nothing*
1010

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint": "eslint --ext .js,.ts,.tsx src",
1414
"lint:fix": "npm run lint -- --fix",
1515
"start": "vite serve --host=0.0.0.0",
16-
"build": "tsc --noEmit && vite build"
16+
"build": "tsc && vite build"
1717
},
1818
"dependencies": {
1919
"@asyncapi/react-component": "^1.0.0-next.47",

src/assets/css/main.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
@layer components {
2323
.menu-item {
2424
font-family: sans-serif;
25-
@apply text-shlink-color hover:text-shlink-color-dark py-1.5 px-2.5;
25+
@apply text-shlink-brand hover:text-shlink-brand-dark py-1.5 px-2.5;
2626
}
2727

2828
.menu-item.active {
29-
@apply text-white bg-shlink-color rounded;
29+
@apply text-white bg-shlink-brand rounded;
3030
}
3131
}
3232

src/components/Header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Header: FC<HeaderProps> = ({ setTag, tags }) => {
2121

2222
return (
2323
<Headroom style={{ zIndex: 99 }}>
24-
<header className="bg-shlink-color h-16 py-4">
24+
<header className="bg-shlink-brand h-16 py-4">
2525
<div className="container mx-auto px-5 flex">
2626
<h2 className="text-white text-2xl font-bold flex-1">
2727
<ShlinkLogo className="w-8 h-8 inline" />{' '}

tailwind.config.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ module.exports = {
66
theme: {
77
extend: {
88
colors: {
9-
'shlink-color': '#4696e5',
10-
'shlink-color-dark': '#1f69c0'
9+
'shlink-brand': {
10+
'DEFAULT': '#4696e5',
11+
'dark': '#1f69c0'
12+
},
1113
}
1214
},
1315
screens: {

0 commit comments

Comments
 (0)