introducing styled-elements - DOM primitives with CSS template strings
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.3k
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
lol. Was bored and made this, works well with yo-yo and choo. Based on styled-components for React.
npm install --save styled-elements
Usage
import styled from 'styled-elements';
const Header = styled.h2`
color: #333;
`;
const MyButton = styled.button`
padding: 10px;
border-radius: ${0}px;
background: #F1F1F1;
&:hover {
background: #555;
}
`;
const Wrapper = styled.div`
width: 500px;
border: 1px solid #aaa;
@media (min-width: 400px) {
width: 100%;
background: #F1F1F1;
}
`;
document.body.appendChild(Wrapper()(
Header()('My header!'),
MyButton({ onclick: () => console.log('yay!') })(
'Do Something'
)
));
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue describes styled-elements and links to its separate repository, but it does not name a yo-yo file, test, or requested change. Start by checking whether the linked project is intended for integration here; no completion condition is provided.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 10/100