Is it possible to style an element based on its technology? #367
-
| A container or a component, like other element types, can have a technology set. Can it be used in some way to set a style for that technology, like defining an icon to be used? As of today I'm duplicating the technology information as a tag. | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            simonbrowndotje
          
      
      
        Jan 25, 2025 
      
    
    Replies: 1 comment 1 reply
-
| It's not - all styles are based upon tags. You can use a script to add an element's technology as a tag though, to prevent the manual duplication. For example: https://docs.structurizr.com/dsl/cookbook/scripts/#append-container-technology-property-to-tags | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        uchoa
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
It's not - all styles are based upon tags. You can use a script to add an element's technology as a tag though, to prevent the manual duplication. For example: https://docs.structurizr.com/dsl/cookbook/scripts/#append-container-technology-property-to-tags