Skip to content

refactor: do plugin universal css agnostic #10

@reslear

Description

@reslear

hi @lilianjin, i'm suggest do plugin css agnostic:

  • remove tailwind classes from plugin
  • add specific plugin classes like (sc-container, sc-wrapper, sc-input etc...)
  • add styles to .css for vanilla css (compiled with tailwind) and importing if need [1]
  • add to package.json separate exports for css files
  • add instruction how to use with tailwind and well-now classes with @apply syntax [2]
  • rewrite to typescript

[1]

// importing styles if need css 
import 'ofcold-security-code/styles.css'
.sc-container {
   display:flex;
   margin-left: auto;
   margin-right: auto;
}

[2]

.sc-container {
   @apply flex flex-direction ml-auto mr-auto
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions