-
/* ./button.jsx */
import React, { Component } from 'react';
import styles from './button.module.css'; // Import css modules stylesheet as styles
import './another-stylesheet.css'; // Import regular stylesheet
class Button extends Component {
render() {
return <button className={styles.error}>Error Button</button>;
}
} /* ./button.module.css */
.error { background-color: red; } Doesn't looks like working with Aleph as of now. |
Beta Was this translation helpful? Give feedback.
Answered by
ije
May 2, 2023
Replies: 1 comment
-
aleph uses lightning-css as the CSS pre-processor which supports css modules https://lightningcss.dev/css-modules.html, but i didn't add it as the feature yet |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
garkin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
aleph uses lightning-css as the CSS pre-processor which supports css modules https://lightningcss.dev/css-modules.html, but i didn't add it as the feature yet