Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/blue theme #88

Merged
merged 4 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Tremor Button [v0.1.2]
// Tremor Button [v0.2.0]

import React from "react"
import { Slot } from "@radix-ui/react-slot"
Expand All @@ -23,14 +23,14 @@ const buttonVariants = tv({
// border
"border-transparent",
// text color
"text-white dark:text-gray-900",
"text-white dark:text-white",
// background color
"bg-gray-900 dark:bg-gray-50",
"bg-blue-500 dark:bg-blue-500",
// hover color
"hover:bg-gray-800 dark:hover:bg-gray-200",
"hover:bg-blue-600 dark:hover:bg-blue-600",
// disabled
"disabled:bg-gray-100 disabled:text-gray-400",
"disabled:dark:bg-gray-800 disabled:dark:text-gray-600",
"disabled:bg-blue-300 disabled:text-white",
"disabled:dark:bg-blue-800 disabled:dark:text-blue-400",
],
secondary: [
// border
Expand Down
6 changes: 6 additions & 0 deletions src/components/Button/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Tremor Button Changelog

## 0.2.0

### Changes

- Feat: Update base color

## 0.1.2

### Changes
Expand Down
6 changes: 3 additions & 3 deletions src/components/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Tremor Calendar [v0.0.5]
// Tremor Calendar [v0.1.0]

"use client"

Expand Down Expand Up @@ -132,8 +132,8 @@ const Calendar = ({
day_today: "font-semibold",
day_selected: cx(
"rounded",
"aria-selected:bg-gray-900 aria-selected:text-gray-50",
"dark:aria-selected:bg-gray-50 dark:aria-selected:text-gray-900",
"aria-selected:bg-blue-500 aria-selected:text-white",
"dark:aria-selected:bg-blue-500 dark:aria-selected:text-white",
),
day_disabled:
"!text-gray-300 dark:!text-gray-700 line-through disabled:hover:bg-transparent",
Expand Down
6 changes: 6 additions & 0 deletions src/components/Calendar/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Tremor Calendar Changelog

## 0.1.0

### Changes

- Feat: Update base color

## 0.0.5

### Changes
Expand Down
4 changes: 2 additions & 2 deletions src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Tremor Slider [v0.0.1]
// Tremor Slider [v0.1.0]

"use client"

Expand Down Expand Up @@ -46,7 +46,7 @@ const Slider = React.forwardRef<
<SliderPrimitive.Range
className={cx(
// base
"absolute rounded-full bg-gray-900 dark:bg-gray-300",
"absolute rounded-full bg-blue-500 dark:bg-blue-500",
// orientation
"data-[orientation='horizontal']:h-full",
"data-[orientation='vertical']:w-full",
Expand Down
6 changes: 6 additions & 0 deletions src/components/Slider/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Tremor Slider Changelog

## 0.1.0

### Changes

- Feat: Update base color

## 0.0.1

### Changes
Expand Down
6 changes: 3 additions & 3 deletions src/components/TabNavigation/TabNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Tremor TabNavigation [v0.0.2]
// Tremor TabNavigation [v0.1.0]

import React from "react"
import * as NavigationMenuPrimitives from "@radix-ui/react-navigation-menu"
Expand Down Expand Up @@ -83,8 +83,8 @@ const TabNavigationLink = React.forwardRef<
// border hover
"group-hover:border-gray-300 group-hover:dark:border-gray-400",
// selected
"group-data-[active]:border-gray-900 group-data-[active]:text-gray-900",
"group-data-[active]:dark:border-gray-50 group-data-[active]:dark:text-gray-50",
"group-data-[active]:border-blue-500 group-data-[active]:text-blue-500",
"group-data-[active]:dark:border-blue-500 group-data-[active]:dark:text-blue-500",
// disabled
disabled
? "pointer-events-none text-gray-300 dark:text-gray-700"
Expand Down
6 changes: 6 additions & 0 deletions src/components/TabNavigation/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Tremor TabNavigation Changelog

## 0.1.0

### Changes

- Feat: Update base color

## 0.0.2

### Changes
Expand Down
6 changes: 3 additions & 3 deletions src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Tremor Tabs [v0.0.1]
// Tremor Tabs [v0.1.0]

import React from "react"
import * as TabsPrimitives from "@radix-ui/react-tabs"
Expand Down Expand Up @@ -71,8 +71,8 @@ function getVariantStyles(tabVariant: TabsListVariant) {
// border hover
"hover:border-gray-300 hover:dark:border-gray-400",
// selected
"data-[state=active]:border-gray-900 data-[state=active]:text-gray-900",
"data-[state=active]:dark:border-gray-50 data-[state=active]:dark:text-gray-50",
"data-[state=active]:border-blue-500 data-[state=active]:text-blue-500",
"data-[state=active]:dark:border-blue-500 data-[state=active]:dark:text-blue-500",
// disabled
"data-[disabled]:pointer-events-none",
"data-[disabled]:text-gray-300 data-[disabled]:dark:text-gray-700",
Expand Down
6 changes: 6 additions & 0 deletions src/components/Tabs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Tremor Tabs Changelog

## 0.1.0

### Changes

- Feat: Update base color

## 0.0.1

### Changes
Expand Down
Loading