vercel / vercel/next-learn

Problema com animações do Tailwindcss no starter-example do dashboard

Open
#737 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
4.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

No arquivo 'tailwind.config.ts' há a seguinte configuração de uma animação personalizada:

keyframes: {
    shimmer: {
        '100%': {
            transform: 'translateX(100%)',
        }
    }
}

No entanto, isso parece impedir a utilização das outras animações padrão do Tailwindcss.
Para resolver isso eu movi essa config para dentro de 'extend' ao invés de deixa-la diretamente dentro de 'theme'

E então ficou assim:

theme: {
    extend: {
      gridTemplateColumns: {
        '13': 'repeat(13, minmax(0, 1fr))',
      },
      colors: {
        blue: {
          400: '#2589FE',
          500: '#0070F3',
          600: '#2F6FEB',
        },
      },
      keyframes: {
        shimmer: {
          '100%': {
            transform: 'translateX(100%)',
          },
        },
      }
    },
  }

Espero ter ajudado alguém que passou pelo mesmo problema, desejo bons código :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open tailwind.config.ts in the dashboard starter-example and compare the custom keyframes placement with Tailwind CSS theme configuration. Verify that the shimmer animation remains available while the default Tailwind animations are restored, then check the starter-example output or its existing validation workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss, typescript
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.