Skip to content

Commit 0e59321

Browse files
Update namings and documentation to bring consistency to -palette (#123)
* remove DS_Store files and include in gitignore * add some naming consistency
1 parent f295207 commit 0e59321

8 files changed

Lines changed: 22 additions & 22 deletions

File tree

.DS_Store

-8 KB
Binary file not shown.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ dist
129129
.yarn/install-state.gz
130130
.pnp.*
131131

132-
**/*/.DS_Store
133-
132+
.DS_Store
133+
**/.DS_Store

plugins/icon-library/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This plugin allows you to see all your project icons in a new tab in remix development tools, copy the code and change their classes.
44

5-
<video controls="controls" src="./Icon library.mp4" ></video>
5+
<video controls="controls" src="./icon-library.mp4" ></video>
66

77
## How to use
88

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Icon library plugin
1+
# Tailwind palette plugin
22

33
This plugin allows you to see all tailwind colors in a new tab in remix development tools, copy them and paste into code.
44

5-
<video controls="controls" src="./color-pallette.mp4" ></video>
5+
<video controls="controls" src="./color-palette.mp4" ></video>
66

77
## How to use
88

99

1010
### Vite
1111
1. Create a plugin directory in your project. (eg on the root you can create a `your-path-here` folder)
12-
2. Copy the code from the plugin located in this folder. and paste it into there (eg `your-path-here/tailwind-pallette.tsx`)
12+
2. Copy the code from the plugin located in this folder. and paste it into there (eg `your-path-here/tailwind-palette.tsx`)
1313
3. Specify the plugin directory in your vite config via the `pluginsDir` option:
1414

1515
```js
@@ -24,14 +24,14 @@ This plugin allows you to see all tailwind colors in a new tab in remix developm
2424

2525
1. Copy the code from the plugin located in this folder.
2626
2. Go over the TODO's in the code and modify the code to your project specifications.
27-
3. Import the plugin exported from the `tailwind-pallette.tsx` into your `root.tsx` file.
27+
3. Import the plugin exported from the `tailwind-palette.tsx` into your `root.tsx` file.
2828
4. Add the plugin to the `plugins` array in the `withDevTools` wrapper.
2929

3030
```tsx
31-
import { tailwindPallettePlugin } from "~/tailwind-pallette.tsx";
31+
import { tailwindPalettePlugin } from "~/tailwind-palette.tsx";
3232

3333
AppExport = withDevTools(App, {
34-
plugins: [tailwindPallettePlugin()]
34+
plugins: [tailwindPalettePlugin()]
3535
});
3636
```
3737

@@ -41,7 +41,7 @@ This plugin allows you to see all tailwind colors in a new tab in remix developm
4141

4242
The plugin will use all the tailwind colors and list them for you so you can easily copy paste them and apply them to your elements
4343

44-
You can click on the color to copy the name of the icon to your clipboard.
44+
You can click on the color to copy the name of the color to your clipboard.
4545

4646

4747
## Can I add my own features?
File renamed without changes.

plugins/tailwind-pallette/tailwind-pallette.tsx renamed to plugins/tailwind-palette/tailwind-palette.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const colorVariants = {
210210
// Color groups
211211
const colors = Object.keys(colorVariants) as (keyof typeof colorVariants)[];
212212

213-
const TailwindColorPallette = () => {
213+
const TailwindColorPalette = () => {
214214
return (
215215
<div className="font-display flex flex-col p-4 md:p-8">
216216
<div className="flex justify-between overflow-auto">
@@ -235,8 +235,8 @@ const TailwindColorPallette = () => {
235235
);
236236
};
237237

238-
export const tailwindPallettePlugin = () => ({
239-
// Adds pallette icon, you can change
238+
export const tailwindPalettePlugin = () => ({
239+
// Adds palette icon, you can change
240240
icon: (
241241
<svg
242242
xmlns="http://www.w3.org/2000/svg"
@@ -257,10 +257,10 @@ export const tailwindPallettePlugin = () => ({
257257
</svg>
258258
),
259259
// Name of the tab
260-
name: "Color Pallette",
260+
name: "Color Palette",
261261
// id of the tab, must be unique
262-
id: "pallette",
262+
id: "palette",
263263
requiresForge: false,
264264
hideTimeline: false,
265-
component: <TailwindColorPallette />,
265+
component: <TailwindColorPalette />,
266266
});

src/test-apps/remix-vite/plugins/tailwind-pallete.tsx renamed to src/test-apps/remix-vite/plugins/tailwind-palette.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const colorVariants = {
210210
// Color groups
211211
const colors = Object.keys(colorVariants) as (keyof typeof colorVariants)[];
212212

213-
const TailwindColorPallette = () => {
213+
const TailwindColorPalette = () => {
214214
return (
215215
<div className="font-display flex flex-col p-4 md:p-8">
216216
<div className="flex justify-between overflow-auto">
@@ -235,8 +235,8 @@ const TailwindColorPallette = () => {
235235
);
236236
};
237237

238-
export const tailwindPallettePlugin = () => ({
239-
// Adds pallette icon, you can change
238+
export const tailwindPalettePlugin = () => ({
239+
// Adds palette icon, you can change
240240
icon: (
241241
<svg
242242
xmlns="http://www.w3.org/2000/svg"
@@ -257,10 +257,10 @@ export const tailwindPallettePlugin = () => ({
257257
</svg>
258258
),
259259
// Name of the tab
260-
name: "Color Pallette",
260+
name: "Color Palette",
261261
// id of the tab, must be unique
262-
id: "pallette",
262+
id: "palette",
263263
requiresForge: false,
264264
hideTimeline: false,
265-
component: <TailwindColorPallette />,
265+
component: <TailwindColorPalette />,
266266
});

0 commit comments

Comments
 (0)