Skip to content

Commit

Permalink
revert: rull tilbake tailwind-plugin som førte til bug i core
Browse files Browse the repository at this point in the history
Ruller midlertidig tilbake innføringen av typografi-plugins for Tailwind,
siden dette førte til en skjult avhengighet for de som ikke
bruker Tailwind i prosjektet sitt

ISSUES CLOSED: #4493
  • Loading branch information
piofinn committed Jan 23, 2025
1 parent ab8b0eb commit 67b3cde
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 156 deletions.
16 changes: 1 addition & 15 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,9 @@ export const TailwindExample = () => {
TailwindPreset er for øyeblikket konfigurert ved hjelp av Jøkul-tokens for følgende:

- Farger
- Typografi
- Spacing
- Breakpoints

Preseten inkluderer en custom plugin som oppretter egne utility-klasser for typografi, tilpasset vår egen typografiskala.

```scss
.title
.title-small
.heading-1
.heading-2
.heading-3
.heading-4
.heading-5
.body
.small
```

### Vind

Vind er et subset av [Tailwind CSS](https://tailwindcss.com), med grunnlag i Jøkuls design tokens, som fokuserer på:
Expand Down
61 changes: 0 additions & 61 deletions packages/core/src/tailwind/plugins/typographyPlugin.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/core/src/tailwind/tailwindPreset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Config } from "tailwindcss";
import tokens from "../tokens";
import { breakpoints } from "../utils/breakpoints";
import colors from "./colors";
import typographyPlugin from "./plugins/typographyPlugin";

const tailwindPreset: Partial<Config> = {
theme: {
Expand All @@ -17,7 +16,6 @@ const tailwindPreset: Partial<Config> = {
lg: `${breakpoints.xl}px`,
},
},
plugins: [typographyPlugin],
};

export default tailwindPreset;
16 changes: 1 addition & 15 deletions packages/jokul/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,23 +208,9 @@ export const TailwindExample = () => {
TailwindPreset er for øyeblikket konfigurert ved hjelp av Jøkul-tokens for følgende:

- Farger
- Typografi
- Spacing
- Breakpoints

Preseten inkluderer en custom plugin som oppretter egne utility-klasser for typografi, tilpasset vår egen typografiskala.

```scss
.title
.title-small
.heading-1
.heading-2
.heading-3
.heading-4
.heading-5
.body
.small
```

## Vind

Vi tilbyr også en Jøkulifisert versjon av Tailwind, tilgjengelig via
Expand Down
61 changes: 0 additions & 61 deletions packages/jokul/src/core/tailwind/plugins/typographyPlugin.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/jokul/src/core/tailwind/tailwindPreset.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Config } from "tailwindcss";
import tokens from "../tokens.js";
import colors from "./colors.js";
import typographyPlugin from "./plugins/typographyPlugin.js";

const tailwindPreset: Partial<Config> = {
theme: {
Expand All @@ -16,7 +15,6 @@ const tailwindPreset: Partial<Config> = {
lg: tokens.breakpoint.xl,
},
},
plugins: [typographyPlugin],
};

export default tailwindPreset;

0 comments on commit 67b3cde

Please sign in to comment.