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

revert: rull tilbake tailwind-plugin som førte til bug i core #4494

Merged
merged 1 commit into from
Jan 23, 2025
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
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;
Loading