Skip to content

Commit 1df3102

Browse files
committed
Removed dark hover on buttons
1 parent 3d3ecce commit 1df3102

File tree

15 files changed

+5
-18
lines changed

15 files changed

+5
-18
lines changed

examples/example_next/src/app/(website)/components/HeaderLink.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function HeaderLink({ href, children, className }: HeaderLinkProps) {
1515
const isActive = pathname.startsWith(href);
1616
return (
1717
<Link href={href}
18-
className={cls("block uppercase py-2 text-sm font-semibold hover:text-primary-dark dark:text-surface-300",
18+
className={cls("block uppercase py-2 text-sm font-semibold hover:text-secondary dark:text-surface-300",
1919
isActive ? 'text-secondary' : 'text-surface-800',
2020
className)}>
2121
{children}

examples/example_next/tailwind.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export default {
4343
},
4444
colors: {
4545
primary: "var(--fcms-primary)",
46-
"primary-dark": "var(--fcms-primary-dark)",
4746
"primary-bg": "var(--fcms-primary-bg)",
4847
secondary: "var(--fcms-secondary)",
4948
field: {

packages/cli/templates/template_next_pro/src/app/(website)/components/HeaderLink.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function HeaderLink({ href, children, className }: HeaderLinkProps) {
1515
const isActive = pathname.startsWith(href);
1616
return (
1717
<Link href={href}
18-
className={cls("block uppercase py-2 text-sm font-semibold hover:text-primary-dark dark:text-surface-300",
18+
className={cls("block uppercase py-2 text-sm font-semibold hover:text-secondary dark:text-surface-300",
1919
isActive ? 'text-secondary' : 'text-surface-800',
2020
className)}>
2121
{children}

packages/cli/templates/template_next_pro/tailwind.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export default {
4343
},
4444
colors: {
4545
primary: "var(--fcms-primary)",
46-
"primary-dark": "var(--fcms-primary-dark)",
4746
"primary-bg": "var(--fcms-primary-bg)",
4847
secondary: "var(--fcms-secondary)",
4948
field: {

packages/firecms_cloud/src/hooks/useBuildProjectConfig.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,9 @@ export function useBuildProjectConfig({
118118
useEffect(() => {
119119
if (primaryColor) {
120120
document.documentElement.style.setProperty("--fcms-primary", primaryColor);
121-
document.documentElement.style.setProperty("--fcms-primary-dark", darkenColor(primaryColor, 10));
122121
document.documentElement.style.setProperty("--fcms-primary-bg", hexToRgbaWithOpacity(primaryColor, 10));
123122
} else {
124123
document.documentElement.style.setProperty("--fcms-primary", darkenColor(DEFAULT_PRIMARY_COLOR, 10));
125-
document.documentElement.style.setProperty("--fcms-primary-dark", darkenColor(DEFAULT_PRIMARY_COLOR, 10));
126124
document.documentElement.style.setProperty("--fcms-primary-bg", hexToRgbaWithOpacity(DEFAULT_PRIMARY_COLOR, 10));
127125
}
128126
if (secondaryColor) {

packages/ui/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ Finally, you need to define your primary and secondary colors in your `index.css
7575

7676
:root {
7777
--fcms-primary: #0070F4;
78-
--fcms-primary-dark: #0061e6;
7978
--fcms-primary-bg: #0061e610;
8079
--fcms-secondary: #FF5B79;
8180
}

packages/ui/src/components/Button.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const ButtonInner = React.forwardRef<
3838
"w-fit": !fullWidth,
3939

4040
// Filled Variants
41-
"border border-primary bg-primary hover:bg-primary-dark focus:ring-primary shadow hover:ring-1 hover:ring-primary text-white hover:text-white": variant === "filled" && color === "primary" && !disabled,
42-
"border border-secondary bg-secondary hover:bg-secondary-dark focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white hover:text-white": variant === "filled" && color === "secondary" && !disabled,
41+
"border border-primary bg-primary focus:ring-primary shadow hover:ring-1 hover:ring-primary text-white hover:text-white": variant === "filled" && color === "primary" && !disabled,
42+
"border border-secondary bg-secondary focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white hover:text-white": variant === "filled" && color === "secondary" && !disabled,
4343
"border border-red-500 bg-red-500 hover:bg-red-500 focus:ring-red-500 shadow hover:ring-1 hover:ring-red-600 text-white hover:text-white": variant === "filled" && color === "error" && !disabled,
4444
"border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 shadow hover:ring-1 hover:ring-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": variant === "filled" && color === "text" && !disabled,
4545

packages/ui/src/components/Slider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function SliderThumb(props: {
3333
<TooltipPrimitive.Trigger asChild>
3434
<SliderPrimitive.Thumb
3535
className={cls({
36-
"border-primary bg-primary hover:bg-primary-dark outline-none": !props.props.disabled,
36+
"border-primary bg-primary outline-none": !props.props.disabled,
3737
"border-surface-accent-300 bg-surface-accent-300 dark:border-surface-700 dark:bg-surface-700": props.props.disabled
3838
},
3939
props.classes,

packages/ui/tailwind.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export default {
3737
},
3838
colors: {
3939
"primary": "var(--fcms-primary)",
40-
"primary-dark": "var(--fcms-primary-dark)",
4140
"primary-bg": "var(--fcms-primary-bg)",
4241
"secondary": "var(--fcms-secondary)",
4342
"field": {

packages/user_management/tailwind.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export default {
3232
},
3333
colors: {
3434
primary: "var(--fcms-primary)",
35-
"primary-dark": "var(--fcms-primary-dark)",
3635
"primary-bg": "var(--fcms-primary-bg)",
3736
secondary: "var(--fcms-secondary)",
3837
field: {

website/docs/components.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ Finally, you need to define your primary and secondary colors in your `index.css
9292

9393
:root {
9494
--fcms-primary: #0070F4;
95-
--fcms-primary-dark: #0061e6;
9695
--fcms-primary-bg: #0061e610;
9796
--fcms-secondary: #FF5B79;
9897
}

website/docs/pro/migrating_from_v3_beta.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ Your `index.css` file should look like this:
8080

8181
:root {
8282
--fcms-primary: #0070F4;
83-
--fcms-primary-dark: #0061e6;
8483
--fcms-primary-bg: #0061e610;
8584
--fcms-secondary: #FF5B79;
8685
}

website/docs/pro/nextjs.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ Create a file called `index.css` in the `./src/cms` folder with the following co
125125

126126
:root {
127127
--fcms-primary: #0070F4;
128-
--fcms-primary-dark: #0061e6;
129128
--fcms-primary-bg: #0061e610;
130129
--fcms-secondary: #FF5B79;
131130
}

website/docs/pro/styling_firecms.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ in your `index.css` file:
4848

4949
:root {
5050
--fcms-primary: #0070F4;
51-
--fcms-primary-dark: #0061e6;
5251
--fcms-primary-bg: #0061e610;
5352
--fcms-secondary: #FF5B79;
5453
}
@@ -90,7 +89,6 @@ export default {
9089
extend: {
9190
colors: {
9291
"primary": "var(--fcms-primary)",
93-
"primary-dark": "var(--fcms-primary-dark)",
9492
"primary-bg": "var(--fcms-primary-bg)",
9593
"secondary": "var(--fcms-secondary)",
9694
"field": {

website/tailwind.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export default {
3535
},
3636
colors: {
3737
"primary": "var(--fcms-primary)",
38-
"primary-dark": "var(--fcms-primary-dark)",
3938
"primary-bg": "var(--fcms-primary-bg)",
4039
"secondary": "var(--fcms-secondary)",
4140
"field": {

0 commit comments

Comments
 (0)