Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
Discussion options

/* ./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.
I see some weird example in git history
https://github.com/alephjs/aleph.js/tree/2a820b75daf75d4988c0b9730e9f37ebf30194a4/examples/hello-world-css-modules
Which doesn't look like having much in common with CSS modules and CSS component isolation at all.
And this example is also missing from current main branch.

You must be logged in to vote

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

Replies: 1 comment

Comment options

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

You must be logged in to vote
0 replies
Answer selected by garkin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.