Skip to content

Scss and Styled components #8

Description

@tezine

Hi,
Congratulations for this project! It's amazing! It's the coolest project I found this year!
I wonder if it's already possible to import Scss files similar to React?

App.tsx

import styles from './App.module.scss'
export default function App() {
    <p>This is a paragraph.</p>
    <p class={styles.myParagraph}>Another paragraph</p>
}

App.module.scss

.myParagraph{
    color:blue
}

Or to use styled-components like this:

import styled from "styled-components";
const Paragraph = styled.p`
  font-size: 15px;
  text-align: center;
`;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions