-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Doc - Theme - Theming with Create React App - Scaffold custom styles #3659
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
@nisnardi thanks for feedback and catch, really appreciate 👍 Will be updated in #3652, https://github.com/Semantic-Org/Semantic-UI-React/pull/3652/files#diff-f4bd9704de5dc9d71d35da9d136fa1c0 |
This is not copying anything in my case. I just created a new app with latest create-react-app and followed the instruction. So I tried copying ( node_modules/semantic-ui-less/_site => src/semantic-ui/site) and paste manually. but then:
This error came up so I copied other files in
|
I am not fully understand what happened: npx create-react-app fresh-suir
yarn add @craco/craco craco-less semantic-ui-less --dev
npx cpy-cli **/* ../../../src/semantic-ui/site --cwd node_modules/semantic-ui-less/_site --parents Then I configured But, when I did all steps from guide everything started to work: |
I have no idea why the copying is not working for me. But I found what was the problem with other parts.
Had to remove those lines. I thought I only had to remove the Folders part and replace it. |
I've also remove the last line, but is it should to me removed? |
I created a new CLI util to copy files and scuffolding faster, please check #3752. Now, to copy files you need to run only: $ npx @semantic-ui-react/bootstrap @tresdev @GitGitZarko yep, the original import of /*******************************
Folders
*******************************/
@themesFolder : 'themes';
@siteFolder : '../../src/semantic-ui/site';
@import (multiple) "~semantic-ui-less/theme.less";
@fontPath : '../../../themes/@{theme}/assets/fonts'; |
I believe I followed all of the instructions, and everything runs without errors, but the theme styles are not applied. I can't figure out what I am missing. package.json:
theme.config:
craco.config.js:
index.js:
|
Did you solve problem?? I have same problem... How to customize without using @craco?. |
Bug Report
The Theme doc for theming with Create React App has a step where you copy some theme files but running the following command will copy all the files without the theme folder structure and in a flat way.
yarn cpy node_modules/semantic-ui-less/_site/**/* src/semantic-ui/site
Steps
Follow the tutorial and execute the script
Expected Result
It will copy all the theme files with the right theme folder structure
Actual Result
After the running the script you'll see a flat file structure without the theme folders
Version
Current site version
The text was updated successfully, but these errors were encountered: