Skip to content

LaloHao/emacs-styled-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

emacs-styled-components

Set key C-', or call fence-edit-code-at-point inside the styled component context to edit in popup buffer just like babel in org-mode Emacs.

popup.png

Dependencies:

(require 'css-mode)
(require 'fence-edit)
(require 'rx)
(require 'ov)

Note it is not aware if the tags are actually an instance of styled (yet)

Detects either a string, a component’s subproperty, or a component’s method call.

Basically this, and anything inside:

export const Container = styled.div`
`;
Container.Settings = Container.Row.extend`
`;
export const Scrollbar = styled(Scrollbars)`
`;
let unawareOfTagsName = aaaa.aaaaaaaaaa.aaaaaaaa.aaaaaaa(arg)`
`;

Wishable [0/3]

  • [ ] Fence alternative AKA see below
    • [ ] In buffer edit
    • [ ] Override keymap when cursor is in styled context
    • [ ] Syntax highlight
  • [ ] Context aware?
  • [ ] Autocomplete snippets

About

Styled components for Emacs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published